mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-31 14:12:29 +01:00
Clean code
This commit is contained in:
@@ -87,8 +87,8 @@ function show_skin($fuser, $edit = 0)
|
||||
$handle = opendir($dirskin);
|
||||
if (is_resource($handle)) {
|
||||
while (($subdir = readdir($handle)) !== false) {
|
||||
if (is_dir($dirskin."/".$subdir) && substr($subdir, 0, 1) <> '.'
|
||||
&& substr($subdir, 0, 3) <> 'CVS' && !preg_match('/common|phones/i', $subdir)) {
|
||||
if (is_dir($dirskin."/".$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