From: Reini U. <ru...@us...> - 2004-10-05 17:00:25
|
Update of /cvsroot/phpwiki/phpwiki/lib/wikilens In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17523/wikilens Modified Files: RatingsDb.php Log Message: support paging for simple lists fix RatingDb sql backend. remove pages from AllPages (this is ListPages then) Index: RatingsDb.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/wikilens/RatingsDb.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -2 -b -p -d -r1.9 -r1.10 --- RatingsDb.php 5 Oct 2004 00:33:44 -0000 1.9 +++ RatingsDb.php 5 Oct 2004 17:00:04 -0000 1.10 @@ -55,9 +55,9 @@ class RatingsDb extends WikiDB { $this->iter_class = "WikiDB_backend_".$this->dbtype."_generic_iter"; - extract($this->_backend->_table_names); + extract($this->_sqlbackend->_table_names); if (empty($rating_tbl)) { $rating_tbl = (!empty($GLOBALS['DBParams']['prefix']) ? $GLOBALS['DBParams']['prefix'] : '') . 'rating'; - $this->_backend->_table_names['rating_tbl'] = $rating_tbl; + $this->_sqlbackend->_table_names['rating_tbl'] = $rating_tbl; } } else { @@ -529,5 +529,5 @@ class RatingsDb extends WikiDB { $rating_tbl = $this->_dbi->getParam('prefix') . 'rating'; - //$dbi->lock(); + $dbi->lock(); $raterid = $this->_backend->_get_pageid($rater, true); $rateeid = $this->_backend->_get_pageid($ratee, true); @@ -542,5 +542,5 @@ class RatingsDb extends WikiDB { $dbi->_dbh->query($insert); - //$dbi->unlock(); + $dbi->unlock(); return true; } @@ -698,4 +698,9 @@ extends WikiDB_backend_PearDB { // $Log$ +// Revision 1.10 2004/10/05 17:00:04 rurban +// support paging for simple lists +// fix RatingDb sql backend. +// remove pages from AllPages (this is ListPages then) +// // Revision 1.9 2004/10/05 00:33:44 rurban // intermediate fix for non-sql WikiDB and SQL rating |