Index: trunk/phase3/includes/Title.php |
— | — | @@ -2760,8 +2760,16 @@ |
2761 | 2761 | # Update message cache for interface messages |
2762 | 2762 | if( $nt->getNamespace() == NS_MEDIAWIKI ) { |
2763 | 2763 | global $wgMessageCache; |
2764 | | - $oldarticle = new Article( $this ); |
2765 | | - $wgMessageCache->replace( $this->getDBkey(), $oldarticle->getContent() ); |
| 2764 | + |
| 2765 | + # @bug 17860: old article can be deleted, if this the case, |
| 2766 | + # delete it from message cache |
| 2767 | + if ( $this->getArticleID === 0 ) { |
| 2768 | + $wgMessageCache->replace( $this->getDBkey(), false ); |
| 2769 | + } else { |
| 2770 | + $oldarticle = new Article( $this ); |
| 2771 | + $wgMessageCache->replace( $this->getDBkey(), $oldarticle->getContent() ); |
| 2772 | + } |
| 2773 | + |
2766 | 2774 | $newarticle = new Article( $nt ); |
2767 | 2775 | $wgMessageCache->replace( $nt->getDBkey(), $newarticle->getContent() ); |
2768 | 2776 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -249,6 +249,8 @@ |
250 | 250 | * (bug 17799) Special:Random no longer throws a database error when a non- |
251 | 251 | namespace is given, silently falls back to NS_MAIN |
252 | 252 | * (bug 17751) The message for bad titles in WantedPages is now localized |
| 253 | +* (bug 17860) Moving a page in the "MediaWiki" namespace using SuppressRedirect |
| 254 | + no longer corrupts the message cache |
253 | 255 | |
254 | 256 | == API changes in 1.15 == |
255 | 257 | * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions |