Skip to content

Commit

Permalink
Changes in ClassLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
tatai committed Jun 29, 2010
1 parent 3a609f3 commit 868901e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/classes/ClassLoader.class.php
Expand Up @@ -18,7 +18,7 @@
*/
class ClassLoader {

private $_classes = null;
protected $_classes = null;

public function __construct() {
}
Expand Down Expand Up @@ -61,7 +61,7 @@ private function _dispatchFileOrDirectory($path, $file) {
private function _addFile($path, $file) {
if($this->_checkIsClass($file)) {
if(isset($this->_classes[$file])) {
print 'Warning: repeated file ' . $file . '<br />';
print 'Warning: repeated file ' . $file . "<br />\n";
}
else {
$this->_classes[$file] = $path . '/' . $file;
Expand All @@ -71,7 +71,7 @@ private function _addFile($path, $file) {
}

private function _checkIsClass($file) {
return !(preg_match('/\.class\.php$/', $file) === false);
return preg_match('/\.class\.php$/', $file);
}

public function includeClass($classname) {
Expand Down

0 comments on commit 868901e

Please sign in to comment.