Commits

Anonymous committed 699042e

Fix bugs discovered by D13

Comments (0)

Files changed (1)

third_party/MX/Modules.php

 
 	/** Load a module file **/
 	public static function load_file($file, $path, $type = 'other', $result = TRUE)	{
+		
 		$file = str_replace(EXT, '', $file);		
 		$location = $path.$file.EXT;
 		
 		foreach (Modules::$locations as $location => $offset) {					
 			foreach($modules as $module => $subpath) {
 				$fullpath = $location.$module.'/'.$base.$subpath;
-				if ($base == 'libraires/' && is_file($fullpath.ucfirst($file_ext))) return array($fullpath, $file);
+				if ($base == 'libraries/' && is_file($fullpath.ucfirst($file_ext))) return array($fullpath, $file);
 				if (is_file($fullpath.$file_ext)) return array($fullpath, $file);
 			}
 		}