[+] BO : #PSFV-94 - AdminThemes is now an AdminController

// ajax.php get addons themes has been removed and is now in AdminThemesController + uses of jquery
// removed function AdminTab::uploadIco, moved in AdminThemesController
This commit is contained in:
mMarinetti
2011-11-13 17:46:38 +00:00
parent 949c2d4244
commit a439404053
4 changed files with 80 additions and 31 deletions
-17
View File
@@ -1104,23 +1104,6 @@ abstract class AdminTabCore
}
protected function uploadIco($name, $dest)
{
if (isset($_FILES[$name]['tmp_name']) && !empty($_FILES[$name]['tmp_name']))
{
/* Check ico validity */
if ($error = checkIco($_FILES[$name]))
$this->_errors[] = $error;
/* Copy new ico */
elseif(!copy($_FILES[$name]['tmp_name'], $dest))
$this->_errors[] = Tools::displayError('an error occurred while uploading favicon: '.$_FILES[$name]['tmp_name'].' to '.$dest);
}
return !count($this->_errors) ? true : false;
}
/**
* Overload this method for custom checking
*