[pmwiki-users] $action

Patrick R. Michaud pmichaud at pobox.com
Fri Jan 27 13:49:25 CST 2006


On Fri, Jan 27, 2006 at 01:42:59PM -0600, JB wrote:
> Can I use the "$action" variable to determine
> if someone is looking at a page history?
> 
> Is there a better way?
> 
> 
> For example, in an included file I might have:
> 
> if ($action == 'diff') {
>         return;
> }
> #more code here

Yes, this works -- several recipes and PmWiki core scripts use this
approach.

Pm




More information about the pmwiki-users mailing list