From: <var...@us...> - 2011-04-11 12:52:04
|
Revision: 8035 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8035&view=rev Author: vargenau Date: 2011-04-11 12:51:58 +0000 (Mon, 11 Apr 2011) Log Message: ----------- Whitespace only Modified Paths: -------------- trunk/lib/plugin/IncludePages.php Modified: trunk/lib/plugin/IncludePages.php =================================================================== --- trunk/lib/plugin/IncludePages.php 2011-04-11 09:22:33 UTC (rev 8034) +++ trunk/lib/plugin/IncludePages.php 2011-04-11 12:51:58 UTC (rev 8035) @@ -40,18 +40,18 @@ } function getDefaultArguments() { - return array_merge( - array( 'pages' => false, // the pages to include + return array_merge(array( 'pages' => false, // the pages to include 'exclude' => false), // the pages to exclude WikiPlugin_IncludePage::getDefaultArguments() - ); + ); } function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); - $html = HTML(); - if (empty($args['pages'])) + $html = HTML(); + if (empty($args['pages'])) { return $html; + } $include = new WikiPlugin_IncludePage(); if (is_string($args['exclude']) and !empty($args['exclude'])) { @@ -67,11 +67,11 @@ $argstr = preg_replace("/pages=<\?plugin-list.*?\>/", "", $argstr); } - foreach ($args['pages'] as $page) { + 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)); } - } + } return $html; } }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |