Avoid some minor notices and warnings (reported as bug 2814 to Typo3 team)
(http://bugs.typo3.org/view.php?id=2814)
This commit is contained in:
@@ -175,7 +175,12 @@ class textlib {
|
||||
*/
|
||||
|
||||
function specialtoascii($text,$charset='utf-8') {
|
||||
return $this->typo3cs->specCharsToASCII(strtolower($charset),$text);
|
||||
/// Avoid some notices from Typo3 code
|
||||
$oldlevel = error_reporting(E_PARSE);
|
||||
$result = $this->typo3cs->specCharsToASCII(strtolower($charset),$text);
|
||||
/// Restore original debug level
|
||||
error_reporting($oldlevel);
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user