]> git.agnieray.net Git - galette.git/blob - patches/smarty-php81.patch
Patch 3rd party libs for PHP 8.1
[galette.git] / patches / smarty-php81.patch
1 diff -up vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php.patch vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php
2 --- vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php.patch 2021-10-11 16:02:02.854032181 +0200
3 +++ vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php 2021-10-11 16:02:17.246356570 +0200
4 @@ -45,7 +45,7 @@ class Smarty_Internal_Runtime_CodeFrame
5 $properties[ 'cache_lifetime' ] = $_template->cache_lifetime;
6 }
7 $output = "<?php\n";
8 - $output .= "/* Smarty version {$properties[ 'version' ]}, created on " . strftime("%Y-%m-%d %H:%M:%S") .
9 + $output .= "/* Smarty version {$properties[ 'version' ]}, created on " . date("Y-m-d H:i:s") .
10 "\n from '" . str_replace('*/', '* /', $_template->source->filepath) . "' */\n\n";
11 $output .= "/* @var Smarty_Internal_Template \$_smarty_tpl */\n";
12 $dec = "\$_smarty_tpl->_decodeProperties(\$_smarty_tpl, " . var_export($properties, true) . ',' .