29 lines
650 B
PHP
29 lines
650 B
PHP
<?php
|
|
/**
|
|
* 2024 Anvanto
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
|
*
|
|
* @author Anvanto <anvantoco@gmail.com>
|
|
* @copyright 2024 Anvanto
|
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
|
*/
|
|
|
|
if (!defined('_PS_VERSION_')) {
|
|
exit;
|
|
}
|
|
|
|
class AdminImagesController extends AdminImagesControllerCore
|
|
{
|
|
public function initContent()
|
|
{
|
|
if ($this->display != 'edit' && $this->display != 'add') {
|
|
$module = Module::getInstanceByName('anblog');
|
|
$module->regenerateThumbs();
|
|
}
|
|
parent::initContent();
|
|
}
|
|
}
|