Re: win32 bug
| From: | Monte Ohrt | Date: | Wed, 17 Oct 2001 13:49:35 +0000 |
| Subject: | Re: win32 bug | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1712@lists.php.net to get a copy of this message | ||
Hmm, the original should work. It should get "file" as the type, and
"c:/web..." as the name. What does it do instead?
Konstantin Boshnyaga wrote:
>
> Hello smarty!
>
> $smarty->display("file:c:/web/www/block/html/b_stat.html");
>
> doesnt work.
>
> here is my patch
>
> function _fetch_template_source($tpl_path, &$template_source, &$template_timestamp)
> {
> // KB patch
> if (preg_match("/([^:]*):(.*)/", $tpl_path, $out)) {
> $resource_type = $out[1];
> $resource_name = $out[2];
> } else {
> // no resource type, treat as type "file"
> $resource_type = 'file';
> $resource_name = $tpl_path;
> }
> switch ($resource_type) {
>
>
>
>
> --
> Best regards,
> Konstantin mailto:ameoba32@mail.ru
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at Û«Uì˜6å
> �$»*C‰http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/