- fixed some map commands
This commit is contained in:
		@@ -7,7 +7,7 @@ namespace ManiaControl;
 | 
			
		||||
 *
 | 
			
		||||
 * @author steeffeen & kremsy
 | 
			
		||||
 */
 | 
			
		||||
class FileUtil {
 | 
			
		||||
abstract class FileUtil {
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Load a remote file
 | 
			
		||||
@@ -75,6 +75,16 @@ class FileUtil {
 | 
			
		||||
		}
 | 
			
		||||
		return simplexml_load_file($fileLocation);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Return file name cleared from special characters
 | 
			
		||||
	 *
 | 
			
		||||
	 * @param string $fileName        	
 | 
			
		||||
	 * @return string
 | 
			
		||||
	 */
 | 
			
		||||
	public static function getClearedFileName($fileName) {
 | 
			
		||||
		return str_replace(array('\\', '/', ':', '*', '?', '"', '<', '>', '|'), '_', $fileName);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
?>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user