From 542edaacaeaddd3bbfc46bfbeb081f00abcc7b24 Mon Sep 17 00:00:00 2001 From: Michael Hamann Date: Sun, 30 Dec 2012 23:17:30 +0100 Subject: [PATCH] Add more move information so pages can be corrected in more cases --- helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper.php b/helper.php index 801a7f7..8971ace 100644 --- a/helper.php +++ b/helper.php @@ -186,10 +186,10 @@ public function move_page(&$opts, $checkonly = false) { } foreach ($affected_pages[$page_id] as $id) { if (!page_exists($id, '', false) || $id == $page_id || $id == $opts['new_id']) continue; + $additional_pages[] = $id; // if the page has been modified since the rename of the old page, the link in the new page is most // probably intentionally to the old page and shouldn't be changed if (filemtime(wikiFN($id, '', false)) > $time) continue; - $additional_pages[] = $id; // we are only interested in persistent metadata, so no need to render anything. $meta = p_get_metadata($id, 'plugin_pagemove', METADATA_DONT_RENDER); if (!$meta) $meta = array('moves' => array());