// remove deprecated PS_ADMIN_DIR by _PS_ADMIN_DIR_
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8666 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -390,7 +390,7 @@ abstract class AdminSelfTab
|
||||
if (get_class($this) == 'Adminemails')
|
||||
echo '<script type="text/javascript">if (getE(\'PS_MAIL_METHOD2_on\').checked) getE(\'smtp\').style.display = \'block\'; else getE(\'smtp\').style.display = \'none\';</script></div>';
|
||||
|
||||
if (!is_writable(PS_ADMIN_DIR.'/../config/settings.inc.php') AND $name == 'themes')
|
||||
if (!is_writable(_PS_ADMIN_DIR_.'/../config/settings.inc.php') AND $name == 'themes')
|
||||
echo '<p><img src="../img/admin/warning.gif" alt="" /> '.$this->l('if you change the theme, the settings.inc.php file must be writable (CHMOD 755 / 777)').'</p>';
|
||||
|
||||
echo ' <div align="center" style="margin-top: 20px;">
|
||||
@@ -550,7 +550,7 @@ abstract class AdminSelfTab
|
||||
$classname = 'Admin'.$subtab;
|
||||
if ($module = Db::getInstance()->getValue('SELECT `module` FROM `'._DB_PREFIX_.'tab` WHERE `class_name` = \''.pSQL($classname).'\'') AND file_exists(_PS_MODULE_DIR_.'/'.$module.'/'.$classname.'.php'))
|
||||
include_once(_PS_MODULE_DIR_.'/'.$module.'/'.$classname.'.php');
|
||||
elseif (file_exists(PS_ADMIN_DIR.'/tabs/'.$classname.'.php'))
|
||||
elseif (file_exists(_PS_ADMIN_DIR_.'/tabs/'.$classname.'.php'))
|
||||
include_once('tabs/'.$classname.'.php');
|
||||
if (!isset($this->_includeObj[$key]))
|
||||
$this->_includeObj[$key] = new $classname;
|
||||
|
||||
Reference in New Issue
Block a user