[-] BO : bad initialization of context due to miss define of _PS_ADMIN_DIR_ in displayImage.php

This commit is contained in:
vAugagneur
2013-01-09 10:33:57 +01:00
parent 857b8c2009
commit bb558446e8
4 changed files with 1 additions and 3 deletions

View File

@@ -25,7 +25,6 @@
*/
define('_PS_ADMIN_DIR_', getcwd());
include(_PS_ADMIN_DIR_.'/../config/config.inc.php');
if (!Context::getContext()->employee->isLoggedBack())

View File

@@ -24,6 +24,7 @@
* International Registered Trademark & Property of PrestaShop SA
*/
define('_PS_ADMIN_DIR_', getcwd());
require_once(dirname(__FILE__).'/../config/config.inc.php');
require_once(dirname(__FILE__).'/init.php');

View File

@@ -25,7 +25,6 @@
*/
define('_PS_ADMIN_DIR_', getcwd());
include(_PS_ADMIN_DIR_.'/../config/config.inc.php');
if (!isset(Context::getContext()->employee) || !Context::getContext()->employee->isLoggedBack())

View File

@@ -25,7 +25,6 @@
*/
define('_PS_ADMIN_DIR_', getcwd());
include(_PS_ADMIN_DIR_.'/../config/config.inc.php');
if (!isset(Context::getContext()->employee) || !Context::getContext()->employee->isLoggedBack())