[pmwiki-devel] FPLTemplate() Revision
Dominique Faure
dominique.faure at gmail.com
Tue Feb 17 05:22:35 CST 2009
On Tue, Feb 17, 2009 at 10:39, Hans <design5 at softflow.co.uk> wrote:
> Tuesday, February 17, 2009, 9:33:04 AM, Hans wrote:
>
>> As a developer I prefer a dirty
>
>> echo "Unable to retrieve pagelist template $template";
>
> Okay, here is a cleaner solution, which prints the error message
> instead of the pagelist:
>
> if (!$ttext) $ttext = "(:template first:)%red%Error: Unable to retrieve pagelist template $template";
>
So what about ? :)
if(!$ttext) {
global $FPLTemplateError;
SDV($FPLTemplateError, "(:template first:)%red%Error: Unable to
retrieve pagelist template \$template");
$ttext = str_replace('$template', $template, $FPLTemplateError);
}
--
Dominique
More information about the pmwiki-devel
mailing list