From: <var...@us...> - 2011-04-11 15:39:59
|
Revision: 8037 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8037&view=rev Author: vargenau Date: 2011-04-11 15:39:53 +0000 (Mon, 11 Apr 2011) Log Message: ----------- IncludePage plugin has no "pages" argument. Remove it to avoid warning. Modified Paths: -------------- trunk/lib/plugin/IncludePages.php Modified: trunk/lib/plugin/IncludePages.php =================================================================== --- trunk/lib/plugin/IncludePages.php 2011-04-11 13:44:13 UTC (rev 8036) +++ trunk/lib/plugin/IncludePages.php 2011-04-11 15:39:53 UTC (rev 8037) @@ -67,6 +67,11 @@ $argstr = preg_replace("/pages=<\?plugin-list.*?\>/", "", $argstr); } + // IncludePage plugin has no "pages" argument. + // Remove it to avoid warning. + $argstr = preg_replace('/pages=".*?"/', "", $argstr); + $argstr = preg_replace('/pages=\S*\s/', "", $argstr); + foreach ($args['pages'] as $page) { if (empty($args['exclude']) or !in_array($page, $args['exclude'])) { $html = HTML($html, $include->run($dbi, "page='$page' ".$argstr, $request, $basepage)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |