Use glob, updated changelog

This commit is contained in:
xisi 2015-06-19 09:39:54 -04:00 committed by Joey
parent 0b91d743ca
commit cdc3bbb68d
2 changed files with 5 additions and 8 deletions

View File

@ -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)
---------------------

View File

@ -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);