forked from Wavyzz/dolibarr
Clean code
This commit is contained in:
@@ -406,8 +406,8 @@ function showSkins($fuser, $edit = 0, $foruserprofile = false)
|
||||
$handle = opendir($dirtheme);
|
||||
if (is_resource($handle)) {
|
||||
while (($subdir = readdir($handle)) !== false) {
|
||||
if (is_dir($dirtheme."/".$subdir) && substr($subdir, 0, 1) <> '.'
|
||||
&& substr($subdir, 0, 3) <> 'CVS' && !preg_match('/common|phones/i', $subdir)) {
|
||||
if (is_dir($dirtheme."/".$subdir) && substr($subdir, 0, 1) != '.'
|
||||
&& substr($subdir, 0, 3) != 'CVS' && !preg_match('/common|phones/i', $subdir)) {
|
||||
// Disable not stable themes (dir ends with _exp or _dev)
|
||||
if (getDolGlobalInt('MAIN_FEATURES_LEVEL') < 2 && preg_match('/_dev$/i', $subdir)) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user