From cdc3bbb68dcde5298abaf62e0e84e9bcf4da685b Mon Sep 17 00:00:00 2001 From: xisi Date: Fri, 19 Jun 2015 09:39:54 -0400 Subject: [PATCH] Use glob, updated changelog --- CHANGELOG.md | 5 +++-- include/pages/admin/setup.inc.php | 8 ++------ 2 files changed, 5 insertions(+), 8 deletions(-) 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);