forked from ZwiiCMS-Team/ZwiiCMS
Merge branch '10501' into 11000
This commit is contained in:
commit
b5aa88483d
@ -110,9 +110,11 @@ class addon extends common {
|
|||||||
if ( is_dir( $moduleDir )) {
|
if ( is_dir( $moduleDir )) {
|
||||||
// Lire le nom du module
|
// Lire le nom du module
|
||||||
if ($dh = opendir( $moduleDir )) {
|
if ($dh = opendir( $moduleDir )) {
|
||||||
while (($file = readdir($dh)) !== false) {
|
while ( false !== ($file = readdir($dh)) ) {
|
||||||
|
if ($file != "." && $file != "..") {
|
||||||
$moduleName = $file;
|
$moduleName = $file;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
closedir($dh);
|
closedir($dh);
|
||||||
}
|
}
|
||||||
// Module normalisé ?
|
// Module normalisé ?
|
||||||
|
Loading…
Reference in New Issue
Block a user