diff --git a/CHANGELOG.md b/CHANGELOG.md index c8f707ab..46b0009b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,9 @@ -1.0.3 (XXX XXth 2015) +1.0.4 (Jun 19th 2015) --------------------- - * Honor anonymous attribute when sending block finder mails * Display admin warning if no transfer fees are set +* Moved admin_checks.php into the admin panel/system/setup + * Checks are now loaded individually from pages/admin/checks 1.0.3 (Apr 29th 2015) --------------------- diff --git a/include/pages/admin/setup.inc.php b/include/pages/admin/setup.inc.php index cef64d14..9ac27f1d 100644 --- a/include/pages/admin/setup.inc.php +++ b/include/pages/admin/setup.inc.php @@ -28,12 +28,8 @@ if (@$_SESSION['USERDATA']['is_admin'] && $user->isAdmin(@$_SESSION['USERDATA'][ } // we want to load anything in checks/ that is check_*.inc.php - $potentialfiles = scandir(__DIR__."/checks/"); - foreach ($potentialfiles as $pf) { - if ($pf == '.' || $pf == '..') continue; - if (preg_match("/check_+.+\.inc\.php/", $pf)) { - include_once("checks/".$pf); - } + foreach(glob(__DIR__."/checks/check_*.inc.php") as $file) { + include_once($file); } } $smarty->assign("ERRORS", $error);