Skip to content
This repository
Browse code

Use include_once instead of include in JLoader

  • Loading branch information...
commit bfef02de71db7aa5cb46ffdff92778fd6f14f621 1 parent 94478f5
Rune V. Sjøen authored May 20, 2011

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  libraries/loader.php
4  libraries/loader.php
@@ -87,7 +87,7 @@ public static function import($key, $base = null)
87 87
 
88 88
 				// If the file exists attempt to include it.
89 89
 				if (is_file($base.DS.$path.'.php')) {
90  
-					$success = (bool) include $base.DS.$path.'.php';
  90
+					$success = (bool) include_once $base.DS.$path.'.php' ;
91 91
 				}
92 92
 			}
93 93
 
@@ -198,7 +198,7 @@ public static function load($class)
198 198
 
199 199
 		// If the class is registered include the file.
200 200
 		if (isset(self::$_classes[$class])) {
201  
-			include self::$_classes[$class];
  201
+			include_once self::$_classes[$class] ;
202 202
 			return true;
203 203
 		}
204 204
 

0 notes on commit bfef02d

Please sign in to comment.
Something went wrong with that request. Please try again.