From 555989177e463fcf35dec6dd19d19d5cf4645e4c Mon Sep 17 00:00:00 2001 From: rurban Date: Sat, 23 Apr 2005 11:30:12 +0000 Subject: [PATCH] allow emtpy WikiDB::getRevisionBefore(), for simplier templates (revert) git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@4684 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/WikiDB.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/WikiDB.php b/lib/WikiDB.php index 793312067..c05366abc 100644 --- a/lib/WikiDB.php +++ b/lib/WikiDB.php @@ -1,5 +1,5 @@ _wikidb->_backend; $pagename = &$this->_pagename; - - $version = $this->_coerce_to_version($version); + if ($version === false) + $version = $this->_wikidb->_cache->get_latest_version($pagename); + else + $version = $this->_coerce_to_version($version); if ($version == 0) return false; @@ -2135,6 +2137,10 @@ function _sql_debuglog_shutdown_function() { } // $Log: not supported by cvs2svn $ +// Revision 1.130 2005/04/06 06:19:30 rurban +// Revert the previous wrong bugfix #1175761: USECACHE was mixed with WIKIDB_NOCACHE_MARKUP. +// Fix WIKIDB_NOCACHE_MARKUP in main (always set it) and clarify it in WikiDB +// // Revision 1.129 2005/04/06 05:50:29 rurban // honor !USECACHE for _cached_html, fixes #1175761 // -- 2.45.0