This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Use include_once instead of include in JLoader

  • Loading branch information...
rvsjoen committed May 20, 2011
1 parent 94478f5 commit bfef02de71db7aa5cb46ffdff92778fd6f14f621
Showing with 2 additions and 2 deletions.
  1. +2 −2 libraries/loader.php
View
@@ -87,7 +87,7 @@ public static function import($key, $base = null)
// If the file exists attempt to include it.
if (is_file($base.DS.$path.'.php')) {
- $success = (bool) include $base.DS.$path.'.php';
+ $success = (bool) include_once $base.DS.$path.'.php' ;
}
}
@@ -198,7 +198,7 @@ public static function load($class)
// If the class is registered include the file.
if (isset(self::$_classes[$class])) {
- include self::$_classes[$class];
+ include_once self::$_classes[$class] ;
return true;
}

0 comments on commit bfef02d

Please sign in to comment.