forked from ZwiiCMS-Team/ZwiiCMS
Fix modulelName error
This commit is contained in:
parent
9e36af3846
commit
0658c6a9bc
@ -149,8 +149,10 @@ 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)) ) {
|
||||||
$moduleName = $file;
|
if ($file != "." && $file != "..") {
|
||||||
|
$moduleName = $file;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
closedir($dh);
|
closedir($dh);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user