Browse Source

Feature #306 - Removing the function remove_accents(). It is useless in contemporary code.

Ivan Tcholakov 15 years ago
parent
commit
fd9314ca09

+ 0 - 1
main/newscorm/openoffice_document.class.php

@@ -39,7 +39,6 @@ abstract class OpenofficeDocument extends learnpath {
     	global $_course, $_user, $_configuration;
 
     	$this->file_name = (strrpos($file['name'],'.')>0 ? substr($file['name'], 0, strrpos($file['name'],'.')) : $file['name']);
-    	$this->file_name = remove_accents($this->file_name);
 		$this->file_name = replace_dangerous_char($this->file_name,'strict');
 		$this->file_name = strtolower($this->file_name);
 

+ 0 - 7
tests/main/inc/lib/fileUpload.lib.test.php

@@ -300,13 +300,6 @@ class TestFileUpload extends UnitTestCase {
 			ob_end_clean();
 		}
 
-		function testremove_accents() {
-			$string = strtr ( $string, "�����������������������������������������������������", "AAAAAAaaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuyNn");
-			$res= remove_accents($string);
-			$this->assertTrue(is_string($res));
-			//var_dump($res);
-		}
-
 		function testreplace_accents() {
 			global $charset;
 			$string = api_htmlentities($string,ENT_QUOTES,$charset);