Skip to content
Snippets Groups Projects
Commit 78742c71 authored by Jared Hancock's avatar Jared Hancock
Browse files

i18n: Remove unused, possibly incorrect formatting

These functions don't appear to be used an could corrupt UTF-8 encoded text
parent 466aea5a
No related branches found
No related tags found
No related merge requests found
......@@ -30,10 +30,6 @@ class Format {
return round(($bytes/1048576),1).' mb';
}
function file_name($filename) {
return preg_replace('/\s+/', '_', $filename);
}
/* encode text into desired encoding - taking into accout charset when available. */
function encode($text, $charset=null, $encoding='utf-8') {
......@@ -380,10 +376,6 @@ class Format {
}
function linebreaks($string) {
return urldecode(ereg_replace("%0D", " ", urlencode($string)));
}
function viewableImages($html, $script='image.php') {
return preg_replace_callback('/"cid:([\\w.-]{32})"/',
function($match) use ($script) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment