Skip to content

Commit

Permalink
Merge pull request #975 from tarasfrompir/patch-15
Browse files Browse the repository at this point in the history
Update loader.php
  • Loading branch information
sergejey authored Jul 13, 2021
2 parents 3e371f9 + 607097e commit 412b794
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@

include_once('./lib/perfmonitor.class.php');
$ignore_libs[] = 'perfmonitor.class.php';
$ignore_libs[] = 'loader.php';
$ignore_libs[] = 'threads.php';


// liblary modules loader
if ($lib_dir = @opendir("./lib")) {
$files_loaded = array();
while (($lib_file = readdir($lib_dir)) !== false) {
//if ($lib_file=='perfmonitor.class.php' && function_exists('startMeasure')) continue;
if ((preg_match("/\.php$/", $lib_file)) && ($lib_file != "loader.php") && ($lib_file != "threads.php") && !in_array($lib_file, $ignore_libs)) {
if ((preg_match("/\.php$/", $lib_file)) && !in_array($lib_file, $ignore_libs)) {
include_once("./lib/$lib_file");
$files_loaded[] = "./lib/$lib_file";
}
Expand Down

0 comments on commit 412b794

Please sign in to comment.