Skip to content

Commit

Permalink
fix xoopscube#105 glob() result FALSE on except Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Mar 30, 2015
1 parent fc0c25e commit 2719761
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions html/core/XCube_Controller.class.php
Expand Up @@ -427,16 +427,16 @@ function _processPreload($path)
{
$path = $path . "/";

if (is_dir($path)) {
foreach (glob($path.'/*.class.php') as $file) {
require_once $file;
$className = basename($file, '.class.php');
if (XC_CLASS_EXISTS($className) && !isset($this->_mLoadedFilterNames[$className])) {
$this->_mLoadedFilterNames[$className] = true;
$instance = new $className($this);
$this->addActionFilter($instance);
unset($instance);
}
if (is_dir($path) && ($files = glob($path.'/*.class.php'))) {
foreach ($files as $file) {
require_once $file;
$className = basename($file, '.class.php');
if (XC_CLASS_EXISTS($className) && !isset($this->_mLoadedFilterNames[$className])) {
$this->_mLoadedFilterNames[$className] = true;
$instance = new $className($this);
$this->addActionFilter($instance);
unset($instance);
}
}
}
}
Expand Down

0 comments on commit 2719761

Please sign in to comment.