diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-02-15 11:40:19 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-02-15 11:40:19 +0000 |
commit | dc5843bd30a614cb074f70750ba2f631e61f8cb8 (patch) | |
tree | cd977b194f73b16e3dc1dfb40c9c9c5c1988f47f /modules/upload | |
parent | e57b926e8d4385e399731159bd90f862962a86ab (diff) | |
download | brdo-dc5843bd30a614cb074f70750ba2f631e61f8cb8.tar.gz brdo-dc5843bd30a614cb074f70750ba2f631e61f8cb8.tar.bz2 |
- Patch #111347 by Steven: refactor url() and l().
Diffstat (limited to 'modules/upload')
-rw-r--r-- | modules/upload/upload.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module index c85df433c..82c7eb6d9 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -795,7 +795,7 @@ function _upload_form($node) { $form['new']['upload'] = array('#type' => 'file', '#title' => t('Attach new file'), '#size' => 40); $form['new']['attach'] = array('#type' => 'button', '#value' => t('Attach'), '#name' => 'attach', '#id' => 'attach-button'); // The class triggers the js upload behaviour. - $form['attach-url'] = array('#type' => 'hidden', '#value' => url('upload/js', NULL, NULL, TRUE), '#attributes' => array('class' => 'upload')); + $form['attach-url'] = array('#type' => 'hidden', '#value' => url('upload/js', array('absolute' => TRUE)), '#attributes' => array('class' => 'upload')); } // Needed for JS |