diff --git a/utils.inc.php b/utils.inc.php index fd1c0a7..9d262f2 100644 --- a/utils.inc.php +++ b/utils.inc.php @@ -343,11 +343,13 @@ function searchWikis($path, $pattern) { $it = new RecursiveDirectoryIterator($path); $list = array(); + $nb = 0; foreach (new RecursiveIteratorIterator($it) as $file) { if (preg_match('/' . preg_quote($pattern) . '$/i', $file)) { + $nb++; $wakkaConfig = []; include_once($file); - $list[] = [ + $list[$nb] = [ 'URL' => $wakkaConfig['base_url'] ?? 'KO', 'VERSION' => $wakkaConfig['yeswiki_version'] ?? 'KO', 'RELEASE' => $wakkaConfig['yeswiki_release'] ?? 'KO', @@ -372,3 +374,7 @@ function searchWikis($path, $pattern) + + + + diff --git a/yeswiki-updater.php b/yeswiki-updater.php index 5b018b0..32be3c3 100755 --- a/yeswiki-updater.php +++ b/yeswiki-updater.php @@ -45,6 +45,7 @@ if (0 == posix_getuid()) { $update = $climate->arguments->get('update'); $output = $climate->arguments->get('output'); $matches = searchWikis($path, 'wakka.config.php'); + $climate->info(count($matches) . ' yeswikis found on ' . $path); switch ($output) { case 'table':