From: Geoffrey T. D. <da...@us...> - 2003-03-13 18:58:00
|
Update of /cvsroot/phpwiki/phpwiki/lib/plugin In directory sc8-pr-cvs1:/tmp/cvs-serv32218/lib/plugin Modified Files: IncludePage.php Log Message: Hack so that (when using the IncludePage plugin) the including page shows up in the BackLinks of the included page. Index: IncludePage.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/IncludePage.php,v retrieving revision 1.21 retrieving revision 1.22 diff -u -2 -b -p -d -r1.21 -r1.22 --- IncludePage.php 21 Feb 2003 04:12:06 -0000 1.21 +++ IncludePage.php 13 Mar 2003 18:57:56 -0000 1.22 @@ -94,8 +94,24 @@ extends WikiPlugin } - function run($dbi, $argstr, $request) { + function getWikiPageLinks($argstr, $basepage) { + extract($this->getArgs($argstr)); + print "PAGE: $page<br>\n"; + if ($page) { + // Expand relative page names. + $page = new WikiPageName($page, $basepage); + } + if (!$page or !$page->name) + return false; + return array($page->name); + } - extract($this->getArgs($argstr, $request)); + function run($dbi, $argstr, $request, $basepage) { + extract($this->getArgs($argstr, $request)); + if ($page) { + // Expand relative page names. + $page = new WikiPageName($page, $basepage); + $page = $page->name; + } if (!$page) { return $this->error(_("no page specified")); @@ -177,4 +193,8 @@ extends WikiPlugin // $Log$ +// Revision 1.22 2003/03/13 18:57:56 dairiki +// Hack so that (when using the IncludePage plugin) the including page shows +// up in the BackLinks of the included page. +// // Revision 1.21 2003/02/21 04:12:06 dairiki // Minor fixes for new cached markup. |