// Context - first commit

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7586 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-07-11 14:32:05 +00:00
parent 2ee764963b
commit 143022e488
78 changed files with 783 additions and 631 deletions
+4 -2
View File
@@ -170,7 +170,8 @@ abstract class AdminTabCore
public function __construct()
{
global $cookie;
$context = Context::getContext();
$context->tab = $this;
$this->id = Tab::getCurrentTabId();
$this->_conf = array(
1 => $this->l('Deletion successful'), 2 => $this->l('Selection successfully deleted'),
@@ -480,10 +481,11 @@ abstract class AdminTabCore
* Overload this method for custom checking
*
* @param integer $id Object id used for deleting images
* TODO This function will soon be deprecated. Use ObjectModel->deleteImage instead.
* @deprecated As of 1.5 use ObjectModel->deleteImage instead.
*/
public function deleteImage($id)
{
Tools::displayAsDeprecated();
$dir = null;
/* Deleting object images and thumbnails (cache) */
if (key_exists('dir', $this->fieldImageSettings))