mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-05 04:52:47 +02:00
More fixes for PHP7.2
This commit is contained in:
@@ -1102,7 +1102,7 @@ var s,after = document.getElementsByTagName(\'script\')[document.getElementsByTa
|
||||
// replaces echo PHP_STRING_LITERAL; with the string literal value
|
||||
$source = preg_replace_callback(
|
||||
'/\\<\\?php echo ((?:\'(?:(?:\\\\.)|[^\'])*\')|(?:"(?:(?:\\\\.)|[^"])*"));\\?\\>\\n/',
|
||||
create_function('$matches', 'eval(\'$tmp=\'.$matches[1].\';\');return $tmp;'),
|
||||
function($matches) { eval('$tmp='.$matches[1].';');return $tmp; },
|
||||
$source);
|
||||
return $source;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user