diff options
author | cash <cash.costello@gmail.com> | 2012-01-02 21:29:57 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2012-01-02 21:29:57 -0500 |
commit | d24d480f6510b3817f3e85699714ca6ed7ab234c (patch) | |
tree | 89ad9d47a22f09f802f85b63f78c10497ef2fcd4 /pages/photos/image | |
parent | 83cbd76b2e11b7d832e212ce1ffc77da7a3dd2a6 (diff) | |
download | elgg-d24d480f6510b3817f3e85699714ca6ed7ab234c.tar.gz elgg-d24d480f6510b3817f3e85699714ca6ed7ab234c.tar.bz2 |
added uploading scripts
Diffstat (limited to 'pages/photos/image')
-rw-r--r-- | pages/photos/image/upload.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pages/photos/image/upload.php b/pages/photos/image/upload.php index 7d9db5ed8..0c327d53e 100644 --- a/pages/photos/image/upload.php +++ b/pages/photos/image/upload.php @@ -14,7 +14,7 @@ if (!$album_guid) { forward(); } -if (elgg_get_plugin_setting('uploader', 'tidypics') != "disabled") { +if (elgg_get_plugin_setting('uploader', 'tidypics')) { $uploader = get_input('uploader', 'ajax'); } else { $uploader = 'basic'; @@ -48,6 +48,9 @@ elgg_push_breadcrumb(elgg_echo('album:addpix')); if ($uploader == 'basic') { $content = elgg_view('forms/photos/basic_upload', array('entity' => $album)); } else { + elgg_load_js('swfobject'); + elgg_load_js('jquery.uploadify'); + elgg_load_js('tidypics:uploading'); $content = elgg_view('forms/photos/ajax_upload', array('entity' => $album)); } |