|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
duda Smarty n00b
Joined: 02 Jul 2003 Posts: 2 Location: Budapest
|
Posted: Wed Jul 02, 2003 5:27 pm Post subject: function.fetch.php tuning, code provided |
|
|
I'd like to propose a small addition to the fetch function to enable site specific configuration of smarty instead of setting the proxy every time using this function. If a remote file is to be fetched please set the defaults to:
$proxy_host = $smarty->proxy_host;
$proxy_port = $smarty->proxy_port;
And
case "proxy_host":
if(!empty($param_value)) {
$proxy_host = $param_value;
}
should be changed simply to
case "proxy_host":
$proxy_host = $param_value;
Thanks,
Duda
?>[/php] |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|