Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

function.fetch.php tuning, code provided

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
duda
Smarty n00b


Joined: 02 Jul 2003
Posts: 2
Location: Budapest

PostPosted: Wed Jul 02, 2003 5:27 pm    Post subject: function.fetch.php tuning, code provided Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP