From: Marc-Etienne V. <Mar...@al...> - 2008-04-11 15:01:48
|
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, Mar...@al... | | /'| ' | ================================================================== \ |/ / | L'essence des Mathématiques est dans leur liberté. | \ / | Georges Cantor | ------ ================================================================== |