Permalink
Browse files

fix xoopscube#105 glob() result FALSE on except Linux

  • Loading branch information...
nao-pon committed Mar 30, 2015
1 parent fc0c25e commit 27197619c0d3baa95d9d208f13916a6205b6cfcf
Showing with 10 additions and 10 deletions.
  1. +10 −10 html/core/XCube_Controller.class.php
@@ -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);
}
}
}
}

0 comments on commit 2719761

Please sign in to comment.