From d24d480f6510b3817f3e85699714ca6ed7ab234c Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 2 Jan 2012 21:29:57 -0500 Subject: added uploading scripts --- pages/photos/image/upload.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pages') 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)); } -- cgit v1.2.3