[-] BO : Add a check on the scandir for the Employees theme
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15654 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -111,7 +111,7 @@ class AdminEmployeesControllerCore extends AdminController
|
||||
|
||||
$path = _PS_ADMIN_DIR_.'/themes/';
|
||||
foreach (scandir($path) as $theme)
|
||||
if (file_exists($path.$theme.'/css/admin.css'))
|
||||
if ($theme[0] != '.' && is_dir($path.$theme) && file_exists($path.$theme.'/css/admin.css'))
|
||||
$this->themes[] = $theme;
|
||||
|
||||
$home_tab = Tab::getInstanceFromClassName('adminHome');
|
||||
|
||||
Reference in New Issue
Block a user