mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
remove PHP_ALLOW test for <script language='php'> for PHP 7 as it is not supported
This commit is contained in:
@@ -142,7 +142,7 @@ echo \'bar \';
|
|||||||
$foo = 3;
|
$foo = 3;
|
||||||
{ /php}<--', 'PHP_ALLOW, \'phptag_literal.tpl\''),
|
{ /php}<--', 'PHP_ALLOW, \'phptag_literal.tpl\''),
|
||||||
);
|
);
|
||||||
if (version_compare(phpversion(), '7.0.0', '<')) {
|
if (version_compare(phpversion(), '5.7.0', '<')) {
|
||||||
$data[] = array(Smarty::PHP_ALLOW, 'script.tpl', '--> hello world <script language=\'php\'> </script> <--', 'PHP_ALLOW, \'script.tpl\'');
|
$data[] = array(Smarty::PHP_ALLOW, 'script.tpl', '--> hello world <script language=\'php\'> </script> <--', 'PHP_ALLOW, \'script.tpl\'');
|
||||||
}
|
}
|
||||||
return $data;
|
return $data;
|
||||||
|
Reference in New Issue
Block a user