Index: trunk/phase3/includes/Title.php |
— | — | @@ -3074,7 +3074,11 @@ |
3075 | 3075 | break; |
3076 | 3076 | } |
3077 | 3077 | |
3078 | | - if( $oldSubpage->getArticleId() == $this->getArticleId() ) |
| 3078 | + // We don't know whether this function was called before |
| 3079 | + // or after moving the root page, so check both |
| 3080 | + // $this and $nt |
| 3081 | + if( $oldSubpage->getArticleId() == $this->getArticleId() || |
| 3082 | + $oldSubpage->getArticleID() == $nt->getArticleId() ) |
3079 | 3083 | // When moving a page to a subpage of itself, |
3080 | 3084 | // don't move it twice |
3081 | 3085 | continue; |