From: Steve B. <sb...@bi...> - 2003-02-10 17:03:16
|
When I tried to use UnfoldSubpages, it looked like it didn't respect the $pages argument, so I hacked it a bit so it would: function run($dbi, $argstr, $request) { $pagename = $request->getArg('pagename'); $subpages = explodePageList($pagename . SUBPAGE_SEPARATOR . '*'); if (! $subpages) { return $this->error(_("The current page has no subpages defined.")); } include_once('lib/BlockParser.php'); extract($this->getArgs($argstr, $request)); $content = HTML(); $subpages = array_reverse($subpages); if($pages) { $subpages = array_slice ($subpages, 0, $pages); } foreach ($subpages as $page) { I just added fours lines and changed the foreach loop slightly. Steve Wainstead suggested sending the change here. Thanks to everyone for phpwiki! Phpwiki roolz! :-) -- Steven D. Brewer <sb...@bi...> http://www.bio.umass.edu/bcrc/sb.html Ne cxiam dauxras malbona vetero, ne cxiam dauxras homa sufero. |