1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Fix test for PHP 5.6

This commit is contained in:
Cameron 2020-12-20 13:44:18 -08:00
parent bdb4104f9c
commit 153cf33aa7
2 changed files with 7 additions and 2 deletions

View File

@ -317,13 +317,18 @@ class e107
$tmp = explode("\n", $LAYOUT);
$sc = self::getScBatch('_theme_'); // include the theme shortcodes.
$sc = self::getScBatch('_theme_'); // include the theme shortcodes.
$search = array_keys($opts);
$replace = array_values($opts);
foreach ($tmp as $line)
{
if(empty($line))
{
continue;
}
$line = str_replace($search, $replace, $line); // Quick-fix allow for use of {THEME} shortcode.
if (strpos($line,'{') === false)

View File

@ -54,7 +54,7 @@ class e107Test extends \Codeception\Test\Unit
$LAYOUT = file_get_contents(e_THEME."bootstrap3/theme.html");
ob_start();
$this->e107::renderLayout($LAYOUT);
e107::renderLayout($LAYOUT);
$result = ob_get_clean();