mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Fix test for PHP 5.6
This commit is contained in:
parent
bdb4104f9c
commit
153cf33aa7
@ -317,13 +317,18 @@ class e107
|
|||||||
|
|
||||||
$tmp = explode("\n", $LAYOUT);
|
$tmp = explode("\n", $LAYOUT);
|
||||||
|
|
||||||
$sc = self::getScBatch('_theme_'); // include the theme shortcodes.
|
$sc = self::getScBatch('_theme_'); // include the theme shortcodes.
|
||||||
|
|
||||||
$search = array_keys($opts);
|
$search = array_keys($opts);
|
||||||
$replace = array_values($opts);
|
$replace = array_values($opts);
|
||||||
|
|
||||||
foreach ($tmp as $line)
|
foreach ($tmp as $line)
|
||||||
{
|
{
|
||||||
|
if(empty($line))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$line = str_replace($search, $replace, $line); // Quick-fix allow for use of {THEME} shortcode.
|
$line = str_replace($search, $replace, $line); // Quick-fix allow for use of {THEME} shortcode.
|
||||||
|
|
||||||
if (strpos($line,'{') === false)
|
if (strpos($line,'{') === false)
|
||||||
|
@ -54,7 +54,7 @@ class e107Test extends \Codeception\Test\Unit
|
|||||||
$LAYOUT = file_get_contents(e_THEME."bootstrap3/theme.html");
|
$LAYOUT = file_get_contents(e_THEME."bootstrap3/theme.html");
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
$this->e107::renderLayout($LAYOUT);
|
e107::renderLayout($LAYOUT);
|
||||||
|
|
||||||
$result = ob_get_clean();
|
$result = ob_get_clean();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user