Revize 2484
Přidáno uživatelem Ondřej Fibich před více než 9 roky(ů)
freenetis/branches/1.2/application/controllers/settings.php | ||
---|---|---|
// Delete body and html tags
|
||
$html = preg_replace('/<html.*?>.*?<body.*?>/is', '', $html);
|
||
$html = preg_replace('/<\/body><\/html>/is', '', $html);
|
||
$html = preg_replace('/table border="0"/is', 'table class="extended"', $html);
|
||
$html = preg_replace('/width="600"/is', 'width="720" style="table-layout:fixed; overflow: hidden"', $html);
|
||
if (PHP_VERSION_ID >= 50600) {
|
||
$html = preg_replace('/<table>/is', '<table class="extended" width="720" style="table-layout:fixed; overflow: hidden">', $html);
|
||
} else {
|
||
$html = preg_replace('/table border="0"/is', 'table class="extended"', $html);
|
||
$html = preg_replace('/width="600"/is', 'width="720" style="table-layout:fixed; overflow: hidden"', $html);
|
||
}
|
||
}
|
||
|
||
$table = new View('table_2_columns');
|
Také k dispozici: Unified diff
Opravy: refs #1007: Informace o PHP v nastaveni v PHP 5.6