From c5b003cc62ec9b198e7ccf09387cf32faa1c75a6 Mon Sep 17 00:00:00 2001 From: franzz Date: Fri, 25 Dec 2015 21:07:55 +0100 Subject: [PATCH] upload fixes --- inc/spot.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/spot.php b/inc/spot.php index b374db8..5aaf094 100755 --- a/inc/spot.php +++ b/inc/spot.php @@ -70,7 +70,7 @@ class Spot extends Main ); } - public function getMainPage() + public function getMainPage($asGlobalVars=array(), $sMainPage='index') { return parent::getMainPage(array('vars'=>array('feed_id'=>self::FEED_ID))); } @@ -170,7 +170,8 @@ class Spot extends Main public function upload() { $this->oClassManagement->incClass('uploader', true); - $oUploader = new Uploader(); + $oUploader = new Uploader(array('image_versions' => array())); + $oUploader->init(); return $oUploader->getBody(); } }