From: <var...@us...> - 2010-05-18 14:34:00
|
Revision: 7403 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7403&view=rev Author: vargenau Date: 2010-05-18 14:33:53 +0000 (Tue, 18 May 2010) Log Message: ----------- Lets's have a single global isActionPage() function Modified Paths: -------------- trunk/lib/stdlib.php Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2010-05-18 13:23:25 UTC (rev 7402) +++ trunk/lib/stdlib.php 2010-05-18 14:33:53 UTC (rev 7403) @@ -73,6 +73,7 @@ count_all ($arg) isSubPage ($pagename) subPageSlice ($pagename, $pos) + isActionPage ($filename) phpwiki_version () isWikiWord ($word) @@ -84,7 +85,7 @@ firstNWordsOfContent ($n, $content) extractSection ($section, $content, $page, $quiet = false, $sectionhead = false) isExternalReferrer() - + charset_convert($from, $to, $data) string_starts_with($string, $prefix) string_ends_with($string, $suffix) @@ -177,7 +178,7 @@ function WikiURL($pagename, $args = '', $get_abs_url = false) { global $request, $WikiTheme; $anchor = false; - + if (is_object($pagename)) { if (isa($pagename, 'WikiDB_Page')) { $pagename = $pagename->getName(); @@ -1899,6 +1900,13 @@ return $pages[0]; } +function isActionPage($filename) { + + global $AllActionPages; + + return (in_array($filename, $AllActionPages)); +} + /** * Alert * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |