On Tue, Feb 17, 2009 at 10:39, Hans <desi...@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 _______________________________________________ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel