Skip to content

Commit cdc3bbb

Browse files
committed
Use glob, updated changelog
1 parent 0b91d74 commit cdc3bbb

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
1.0.3 (XXX XXth 2015)
1+
1.0.4 (Jun 19th 2015)
22
---------------------
3-
43
* Honor anonymous attribute when sending block finder mails
54
* Display admin warning if no transfer fees are set
5+
* Moved admin_checks.php into the admin panel/system/setup
6+
* Checks are now loaded individually from pages/admin/checks
67

78
1.0.3 (Apr 29th 2015)
89
---------------------

include/pages/admin/setup.inc.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@
2828
}
2929

3030
// we want to load anything in checks/ that is check_*.inc.php
31-
$potentialfiles = scandir(__DIR__."/checks/");
32-
foreach ($potentialfiles as $pf) {
33-
if ($pf == '.' || $pf == '..') continue;
34-
if (preg_match("/check_+.+\.inc\.php/", $pf)) {
35-
include_once("checks/".$pf);
36-
}
31+
foreach(glob(__DIR__."/checks/check_*.inc.php") as $file) {
32+
include_once($file);
3733
}
3834
}
3935
$smarty->assign("ERRORS", $error);

0 commit comments

Comments
 (0)