From b46b9b1464249916d105ee46f0bdb7972863070d Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Thu, 10 Nov 2011 07:00:44 -0500 Subject: moved upload forms to new location --- pages/upload.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'pages/upload.php') diff --git a/pages/upload.php b/pages/upload.php index 7ac4930b5..6580c6f52 100644 --- a/pages/upload.php +++ b/pages/upload.php @@ -6,6 +6,8 @@ include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php"; +global $CONFIG; + // must be logged in to upload images gatekeeper(); @@ -43,9 +45,16 @@ $title = elgg_echo('album:addpix') . ': ' . $album->title; $area2 .= elgg_view_title($title); if ($uploader == 'basic') { - $area2 .= elgg_view("tidypics/forms/upload", array('album' => $album)); + $area2 .= elgg_view('input/form', array( + 'action' => "{$CONFIG->wwwroot}action/tidypics/upload", + 'body' => elgg_view('forms/tidypics/basic_upload', array('album' => $album)), + 'internalid' => 'tidypicsUpload', + 'enctype' => 'multipart/form-data', + 'method' => 'post', + )); + } else { - $area2 .= elgg_view("tidypics/forms/ajax_upload", array('album' => $album)); + $area2 .= elgg_view("forms/tidypics/ajax_upload", array('album' => $album)); } $body = elgg_view_layout('two_column_left_sidebar', '', $area2); -- cgit v1.2.3