-bugfix in function.fetch.php, reference to undefined $smarty

This commit is contained in:
uwe.tews@googlemail.com
2010-11-17 23:15:12 +00:00
parent f49ac309b9
commit dd332db455
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
17/11/2010
- bugfix on {call} with variable function name
- bugfix on {block} if name did contain '-'
- bugfix in function.fetch.php , referece to undefined $smarty
16/11/2010
- bugfix whitespace in front of "<?php" in smarty_internal_compile_private_block_plugin.php

View File

@@ -52,7 +52,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->_version;
$agent = "Smarty Template Engine ".$template->_version;
$referer = "";
$uri = !empty($uri_parts['path']) ? $uri_parts['path'] : '/';
$uri .= !empty($uri_parts['query']) ? '?' . $uri_parts['query'] : '';