From: Joel U. <uck...@us...> - 2001-06-26 18:04:56
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv7529 Modified Files: display.php Log Message: Added $version to RetrievePage call. Added code to determine which pagestore to check when displaying pages, since user could be requesting something from the archive. Index: display.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/display.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** display.php 2001/02/12 01:43:10 1.8 --- display.php 2001/06/26 18:04:54 1.9 *************** *** 3,10 **** // calls transform.php for actual transformation of wiki markup to HTML rcs_id('$Id$'); - - $html = ""; ! $pagehash = RetrievePage($dbi, $pagename, $WikiPageStore); // we render the page if it exists, else ask the user to write one. --- 3,12 ---- // calls transform.php for actual transformation of wiki markup to HTML rcs_id('$Id$'); ! if (!isset($version)) $version = 0; ! $pagestore = SelectStore($dbi, $pagename, $version, $WikiPageStore, $ArchivePageStore); ! $pagehash = RetrievePage($dbi, $pagename, $pagestore, $version); ! ! $html = ""; // we render the page if it exists, else ask the user to write one. |