From e0e70078abb22c6fdefc5eef75d124c8e997cc2f Mon Sep 17 00:00:00 2001 From: vargenau Date: Wed, 30 Jan 2008 19:29:52 +0000 Subject: [PATCH] Disabled to avoid recursive modification when renaming a page like 'PageFoo to 'PageFooTwo' git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@5977 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/WikiDB.php | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/lib/WikiDB.php b/lib/WikiDB.php index 8eb3ce336..7b1bf765a 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(), - $lookbehind.$from.$lookahead, $to, - true, true); - } + // Disabled to avoid recursive modification when renaming + // a page like 'PageFoo to 'PageFooTwo'. + // + // $links = $newpage->getBackLinks(); + // while ($linked_page = $links->next()) { + // 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)) { @@ -2234,6 +2237,9 @@ function _sql_debuglog_shutdown_function() { } // $Log: not supported by cvs2svn $ +// Revision 1.157 2007/09/15 12:35:50 rurban +// basic array reset support - unclear if needed, iteration is usually one-time only +// // Revision 1.156 2007/09/12 19:38:05 rurban // fix wrong ref ¤t // -- 2.45.0