Re: Action pages

Marc-Etienne Vargenau <[email protected]>
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Organization Alcatel-Lucent (CTO/RDEI/SRA)
Message-ID <[email protected]>
Marc-Etienne Vargenau a écrit :
> Hello,
> 
> The "Action Page" labelling in Monobook theme seems broken.
> 
> I you add a table of content to any page, it becomes an
> Action Page.
> 
> This is due to the fact that the page now includes a plugin.
> 
> What would be the best way to correct this? To determine
> that it is an Action Page based on the name (from a predefined
> list of pages)? Other?

Hello again,

I have made the following modification in file lib/main.php

     function _isActionPage ($pagename, $verbose = true) {

         global $AllActionPages;

         return (in_array($pagename, $AllActionPages));

         // $dbi = $this->getDbh();
         // $page = $dbi->getPage($pagename);
         // if (!$page) return false;
         // $rev = $page->getCurrentRevision();
         // FIXME: more restrictive check for sane plugin?
         // if (strstr($rev->getPackedContent(), '<?plugin'))
         //     return true;
         // if ($verbose and !$rev->hasDefaultContents())
         //     trigger_error("$pagename: Does not appear to be an 'action 
page'", E_USER_NOTICE);
         // return false;
     }

Is this modification correct? Will it work in languages other
than English?

Thank you for your help.

Marc-Etienne

-- 
==================================================================    ------
| Marc-Etienne Vargenau                                          |   /      \
| Alcatel-Lucent France, Route de Villejust, 91620 NOZAY, FRANCE |  /  /|'`  \
| +33 (0)1 30 77 28 33, [email protected]  | |  /'| '   |
==================================================================  \   |/   /
| L'essence des Mathématiques est dans leur liberté.             |   \      /
|                                Georges Cantor                  |    ------
==================================================================

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.