[pmwiki-users] Templates for new pages

Knut Alboldt pmwiki at alboldt.de
Sun Mar 6 10:00:49 CST 2005


Patrick R. Michaud schrieb:
> On Wed, Mar 02, 2005 at 12:27:56PM -0500, Tom Holroyd wrote:
> 
> http://www.pmwiki.org/wiki/Cookbook/EditTemplates allows someone
> to do this site-wide with:
> 
>     include_once('cookbook/edittemplates.php');
>     $EditTemplates = '$Group.Template';
> 
> 

Just a short question to that (from a php-non-pro):

the include statement just includes the code and executes it, it doesn't
function as a function call right ?
So if I include edittemplate.php and want to browse or print a  page (so
action is not "edit") where will the statement

	if ($action != 'edit') return;

lead to ?

I assume this will simply abort my pmwiki-http-request.

Or did I miss something ?

Knut





More information about the pmwiki-users mailing list