Code

Updated smarty to 3.0.5
[gosa.git] / gosa-core / include / smarty / plugins / function.fetch.php
index 21ea69ba6d65a2928e710c8539d053d8bf7d0e12..2b09fb94752ee108378e123182e7129f0842257d 100644 (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'] : '';