Update of /cvsroot/phpwiki/phpwiki/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12968
Modified Files:
MailNotify.php
Log Message:
fix cache
Index: MailNotify.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/MailNotify.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -2 -b -p -d -r1.9 -r1.10
--- MailNotify.php 10 Mar 2007 18:22:51 -0000 1.9
+++ MailNotify.php 1 May 2007 16:14:21 -0000 1.10
@@ -185,7 +185,5 @@ class MailNotify {
if ($previous) {
$difflink = WikiURL($this->pagename, array('action'=>'diff'),
true);
- $dbh = &$request->getDbh();
- $cache = &$dbh->_wikidb->_cache;
- //$cache = &$request->_dbi->_cache;
+ $cache = &$request->_dbi->_cache;
$this_content = explode("\n", $wikitext);
$prevdata = $cache->get_versiondata($this->pagename, $previous,
true);
@@ -218,5 +216,5 @@ class MailNotify {
/**
- * support mass rename / remove (not yet tested)
+ * Support mass rename / remove (not yet tested)
*/
function sendPageRenameNotification ($to, &$meta) {
@@ -248,9 +246,5 @@ class MailNotify {
if (empty($this->pagename))
$this->pagename = $meta['pagename'];
- //TODO: defer it (quite a massive load if you MassRevert some
pages).
- //TODO: notification class which catches all changes,
- // and decides at the end of the request what to mail.
- // (type, page, who, what, users, emails)
- // Could be used for ModeratePage and RSS2 Cloud xml-rpc also.
+ // TODO: Should be used for ModeratePage and RSS2 Cloud xml-rpc
also.
$this->getPageChangeEmails($notify);
if (!empty($this->emails)) {
@@ -387,4 +381,7 @@ will expire at %s.",
// $Log$
+// Revision 1.10 2007/05/01 16:14:21 rurban
+// fix cache
+//
// Revision 1.9 2007/03/10 18:22:51 rurban
// Patch 1677950 by Erwann Penet
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
|