[*] BO : #PSFV-94 - changes to helpers
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9500 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -527,17 +527,7 @@ class AdminImagesController extends AdminController
|
||||
public function initContent()
|
||||
{
|
||||
if ($this->display != 'edit' && $this->display != 'add')
|
||||
$this->display = 'list';
|
||||
|
||||
parent::initContent();
|
||||
|
||||
if ($this->display == 'list')
|
||||
{
|
||||
$helper = new HelperOptions();
|
||||
$helper->id = $this->id;
|
||||
$helper->currentIndex = self::$currentIndex;
|
||||
$this->content .= $helper->generateOptions($this->options);
|
||||
|
||||
$this->initRegenerate();
|
||||
$this->initMoveImages();
|
||||
|
||||
@@ -549,5 +539,7 @@ class AdminImagesController extends AdminController
|
||||
|
||||
if ($this->display == 'edit')
|
||||
$this->warnings[] = $this->l('After modification, do not forget to regenerate thumbnails');
|
||||
|
||||
parent::initContent();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user