1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 17:44:37 +02:00

Backward compatibility fixes.

This commit is contained in:
Cameron
2020-05-06 16:15:52 -07:00
parent 8ac7f1fdf1
commit 0f2ab37d47
6 changed files with 63 additions and 4 deletions

View File

@@ -1605,6 +1605,12 @@ class e_parse extends e_parser
{
$opts['nobreak'] = true;
$text = trim($text);
if(strpos($text,'[center]') === 0) // quick bc fix TODO Find a better solution. [center][/center] containing HTML.
{
$text = str_replace("[center]","<div style='text-align:center'>",$text);
$text = str_replace("[/center]","</div>",$text);
}
}
$fromadmin = $opts['fromadmin'];