From: Carsten K. <car...@us...> - 2002-01-09 17:30:42
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv4142 Modified Files: display.php Log Message: Minor reindenting & rewrapping. Index: display.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/display.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** display.php 2001/12/11 22:41:40 1.12 --- display.php 2002/01/09 17:30:39 1.13 *************** *** 15,19 **** * Alex Schroeder <ken...@ya...>. * ! * Use the first paragraph in the page which contains at least two sentences. * * @see http://www.usemod.com/cgi-bin/mb.pl?MeatballWikiSuggestions --- 15,20 ---- * Alex Schroeder <ken...@ya...>. * ! * Use the first paragraph in the page which contains at least two ! * sentences. * * @see http://www.usemod.com/cgi-bin/mb.pl?MeatballWikiSuggestions *************** *** 42,65 **** function displayPage($dbi, $request) { ! $pagename = $request->getArg('pagename'); ! $version = $request->getArg('version'); ! $page = $dbi->getPage($pagename); ! if ($version) { ! $revision = $page->getRevision($version); ! if (!$revision) ! NoSuchRevision($page, $version); ! } ! else { ! $revision = $page->getCurrentRevision(); ! } ! $template = new WikiTemplate('BROWSE'); ! $template->setPageRevisionTokens($revision); ! $template->replace('CONTENT', do_transform($revision->getContent())); ! $template->qreplace('PAGE_DESCRIPTION', GleanDescription($revision)); ! echo $template->getExpansion(); ! flush(); ! $page->increaseHitCount(); } --- 43,66 ---- function displayPage($dbi, $request) { ! $pagename = $request->getArg('pagename'); ! $version = $request->getArg('version'); ! $page = $dbi->getPage($pagename); ! if ($version) { ! $revision = $page->getRevision($version); ! if (!$revision) ! NoSuchRevision($page, $version); ! } ! else { ! $revision = $page->getCurrentRevision(); ! } ! $template = new WikiTemplate('BROWSE'); ! $template->setPageRevisionTokens($revision); ! $template->replace('CONTENT', do_transform($revision->getContent())); ! $template->qreplace('PAGE_DESCRIPTION', GleanDescription($revision)); ! echo $template->getExpansion(); ! flush(); ! $page->increaseHitCount(); } |