Skip to content

Commit

Permalink
Merge pull request joomla#20 from rvsjoen/loader
Browse files Browse the repository at this point in the history
Use require_once instead of include in JLoader
  • Loading branch information
LouisLandry committed May 26, 2011
2 parents 082df92 + 3944a3d commit 6999a7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ;
}
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 6999a7f

Please sign in to comment.