From 08d397a27a89966bf34c53b261acc85f9586ba34 Mon Sep 17 00:00:00 2001 From: rurban Date: Wed, 12 Sep 2007 19:38:05 +0000 Subject: [PATCH] fix wrong ref ¤t git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@5929 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/WikiDB.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/lib/WikiDB.php b/lib/WikiDB.php index e335f38b3..4552a3259 100644 --- a/lib/WikiDB.php +++ b/lib/WikiDB.php @@ -1,5 +1,5 @@ *
dbtype *
The back-end type. Current supported types are: @@ -328,9 +328,10 @@ class WikiDB { */ function titleSearch($search, $sortby='pagename', $limit='', $exclude='') { $result = $this->_backend->text_search($search, false, $sortby, $limit, $exclude); - return new WikiDB_PageIterator($this, $result, - array('exclude' => $exclude, - 'limit' => $limit)); + $options = array('exclude' => $exclude, + 'limit' => $limit); + //if (isset($result->_count)) $options['count'] = $result->_count; + return new WikiDB_PageIterator($this, $result, $options); } /** @@ -1994,7 +1995,7 @@ class WikiDB_Array_PageIterator reset($this->_pages); } function next() { - $c =& current($this->_pages); + $c = current($this->_pages); next($this->_pages); return $c !== false ? $this->_dbi->getPage($c) : false; } @@ -2023,7 +2024,7 @@ class WikiDB_Array_generic_iter reset($this->_array); } function next() { - $c =& current($this->_array); + $c = current($this->_array); next($this->_array); return $c !== false ? $c : false; } @@ -2225,6 +2226,9 @@ function _sql_debuglog_shutdown_function() { } // $Log: not supported by cvs2svn $ +// Revision 1.155 2007/07/15 17:39:33 rurban +// stabilize rename updateWikiLinks to check only words +// // Revision 1.154 2007/07/14 12:03:58 rurban // support score // -- 2.45.0