Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use include_once instead of include in JLoader

  • Loading branch information...
commit bfef02de71db7aa5cb46ffdff92778fd6f14f621 1 parent 94478f5
@rvsjoen rvsjoen authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 libraries/loader.php
View
4 libraries/loader.php
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.