More PSR4 rewriting

This commit is contained in:
Simon Wisselink
2022-11-30 00:25:27 +01:00
parent 91b6fdeb4e
commit 8b5540f4f3
151 changed files with 732 additions and 7683 deletions

View File

@@ -56,7 +56,7 @@ function smarty_function_fetch($params, $template)
$host = $server_name = $uri_parts[ 'host' ];
$timeout = 30;
$accept = 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*';
$agent = 'Smarty Template Engine ' . Smarty::SMARTY_VERSION;
$agent = 'Smarty Template Engine ' . \Smarty\Smarty::SMARTY_VERSION;
$referer = '';
$uri = !empty($uri_parts[ 'path' ]) ? $uri_parts[ 'path' ] : '/';
$uri .= !empty($uri_parts[ 'query' ]) ? '?' . $uri_parts[ 'query' ] : '';