Skip to content

Commit

Permalink
Add more move information so pages can be corrected in more cases
Browse files Browse the repository at this point in the history
  • Loading branch information
michitux committed Dec 30, 2012
1 parent b4ce499 commit 542edaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 542edaa

Please sign in to comment.