edited page mechanism

This commit is contained in:
Logsol 2013-07-10 12:15:34 +02:00
parent 4c21bbcefd
commit 79a0690fad
8 changed files with 51 additions and 37 deletions

View file

@ -6,10 +6,10 @@ class Upload extends Katharsis_Model_Abstract
}
public function header($id, $file)
public function header($file)
{
$dir = getcwd() . '/img/header';
return $this->_uploadFile($id, $file, $dir);
return $this->_uploadFile(null, $file, $dir);
}
public function page($file)
@ -33,7 +33,9 @@ class Upload extends Katharsis_Model_Abstract
}
$handle = new Verot_Upload($file);
return;
$handle->file_new_name_body = $name;
if ($handle->uploaded)
{
$handle->Process($dir);