buffering output to prevent issues with BOMs in lang, plugins, themes, styles

This commit is contained in:
real_nowhereman 2008-03-03 09:45:48 +00:00
parent 0e208423b7
commit d7de5bf76f
3 changed files with 9 additions and 6 deletions

View File

@ -68,7 +68,7 @@
* capture this chars
*/
//ob_start();
ob_start();
include_once ($fpath);
@ -78,10 +78,7 @@
}
//$v = ob_get_contents();
//ob_end_clean();
// if ($v) trigger_error("[lang] <strong>$fpath</strong> produced output", E_USER_WARNING);
ob_end_clean();
$GLOBALS['lang'] = array_merge_recursive($lang, $old_lang);

View File

@ -99,7 +99,9 @@
if ($errno > 0){
ob_start();
include_once($f);
ob_end_clean();
}
if ($langload)

View File

@ -39,6 +39,8 @@
// instead of the dot, so? It is more "consistent" :D
$conf2 = THEMES_DIR . THE_THEME . '/theme.conf.php';
ob_start();
if (file_exists($conf2)) {
include($conf2);
} elseif (file_exists($conf1)) {
@ -84,6 +86,8 @@
}
ob_end_clean();
return $theme;
}