From a44fe347753a535f2241510eca9d52e9e64f4c04 Mon Sep 17 00:00:00 2001 From: rurban Date: Sun, 15 Jul 2007 17:39:33 +0000 Subject: [PATCH] stabilize rename updateWikiLinks to check only words git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@5838 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/WikiDB.php | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/lib/WikiDB.php b/lib/WikiDB.php index 1ede53f07..e335f38b3 100644 --- a/lib/WikiDB.php +++ b/lib/WikiDB.php @@ -1,5 +1,5 @@ getBackLinks(); while ($linked_page = $links->next()) { - WikiPlugin_WikiAdminSearchReplace::replaceHelper($this, - $linked_page->getName(), - $from, $to); + WikiPlugin_WikiAdminSearchReplace::replaceHelper + ($this, + $linked_page->getName(), + $lookbehind.$from.$lookahead, $to, + true, true); } $links = $newpage->getBackLinks(); while ($linked_page = $links->next()) { - WikiPlugin_WikiAdminSearchReplace::replaceHelper($this, - $linked_page->getName(), - $from, $to); + WikiPlugin_WikiAdminSearchReplace::replaceHelper + ($this, + $linked_page->getName(), + $lookbehind.$from.$lookahead, $to, + true, true); } } if ($oldpage->exists() and ! $newpage->exists()) { if ($result = $this->_backend->rename_page($from, $to)) { - //create a RecentChanges entry with explaining summary + // create a RecentChanges entry with explaining summary $page = $this->getPage($to); $current = $page->getCurrentRevision(); $meta = $current->_data; @@ -2213,6 +2225,9 @@ function _sql_debuglog_shutdown_function() { } // $Log: not supported by cvs2svn $ +// Revision 1.154 2007/07/14 12:03:58 rurban +// support score +// // Revision 1.153 2007/06/07 16:54:29 rurban // enable $MailNotify->onChangePage. support other formatters (MediaWiki, Creole, ...) // -- 2.45.0