aboutsummaryrefslogtreecommitdiff
path: root/pages/upload.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-10 07:00:44 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-10 07:00:44 -0500
commitb46b9b1464249916d105ee46f0bdb7972863070d (patch)
treea701f32991b386b7d0e664f279182449ec3cbb9d /pages/upload.php
parent0fe5af64cf1f5d69e0253e27dec70e346814fcdf (diff)
downloadelgg-b46b9b1464249916d105ee46f0bdb7972863070d.tar.gz
elgg-b46b9b1464249916d105ee46f0bdb7972863070d.tar.bz2
moved upload forms to new location
Diffstat (limited to 'pages/upload.php')
-rw-r--r--pages/upload.php13
1 files changed, 11 insertions, 2 deletions
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);