Jump to content

Перенос модуля в другой хук


Recommended Posts

Все похожие темы прочитал.

 

При попытке прописать любой модуль в другом стандартном хуке у меня вылазит сверху страницы ошибка: "Warning: set_time_limit() has been disabled for security reasons in /home/******/domains/********/public_html/modules/themeinstallator/themeinstallator.php on line 52".

 

Модуль установки шаблонов пробовал отключать, не помогает.

 

Код указанной строки следующий:

------------------------------------------------------------------------------

public function __construct()

{

set_time_limit(0);

ini_set('memory_limit', '2G');

 

$this->name = 'themeinstallator';

$this->version = '1.4';

$this->author = 'PrestaShop';

$this->need_instance = 0;

if (version_compare(_PS_VERSION_, 1.4) >= 0)

$this->tab = 'administration';

else

$this->tab = 'Theme';

parent::__construct();

$this->displayName = $this->l('Import/export a theme');

$this->description = $this->l('Export or Install a theme and its modules on your shop.');

}

--------------------------------------------------------------------------------------

Пробовал менять значение set_time_limit(0) на 20 и 600. Не помогло.

 

Заранее спасибо за помощь.

Edited by Despx (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...