[+] 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


git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10069 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti
2011-11-13 17:46:38 +00:00
parent b092fa73d3
commit 35429b0699
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
*