From aff62f1128677bd94965b02d33c235ca68adbd01 Mon Sep 17 00:00:00 2001 From: rurban Date: Thu, 7 Jun 2007 16:54:29 +0000 Subject: [PATCH] enable $MailNotify->onChangePage. support other formatters (MediaWiki, Creole, ...) git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@5756 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/WikiDB.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/WikiDB.php b/lib/WikiDB.php index fe69c63cc..349cc5081 100644 --- a/lib/WikiDB.php +++ b/lib/WikiDB.php @@ -1,5 +1,5 @@ getType(); $meta['pagetype'] = $type->getName(); $links = $formatted->getWikiPageLinks(); // linkto => relation @@ -1003,9 +1004,7 @@ class WikiDB_Page { include_once("lib/MailNotify.php"); $MailNotify = new MailNotify($newrevision->getName()); - // FIXME: this breaks after-edit-redirect - if (DEBUG) - $MailNotify->onChangePage ($this->_wikidb, $wikitext, $version, $meta); + $MailNotify->onChangePage ($this->_wikidb, $wikitext, $version, $meta); } $newrevision->_transformedContent = $formatted; } @@ -2212,6 +2211,9 @@ function _sql_debuglog_shutdown_function() { } // $Log: not supported by cvs2svn $ +// Revision 1.152 2007/05/28 20:13:46 rurban +// Overwrite all attributes at once at page->save to delete dangling meta +// // Revision 1.151 2007/05/01 16:20:12 rurban // MailNotify->onChangePage only on DEBUG (still broken) // -- 2.45.0