* (bug 30245) Use the correct way to construct a log page title
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 21 Sep 2011 09:41:40 +0000 (09:41 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 21 Sep 2011 09:41:40 +0000 (09:41 +0000)
RELEASE-NOTES-1.19
includes/ChangesList.php
includes/RecentChange.php

index a416aec..ca273b9 100644 (file)
@@ -95,6 +95,7 @@ production.
 * (bug 18424) Special:Prefixindex and Special:Allpages paging links are
   really small, and somewhat inconsistent with each other.
 * Per page edit-notices now work in namespaces without subpages enabled.
+* (bug 30245) Use the correct way to construct a log page title
 
 === API changes in 1.19 ===
 * (bug 19838) siprop=interwikimap can now use the interwiki cache.
index 16c0312..19cc53b 100644 (file)
@@ -511,7 +511,7 @@ class OldChangesList extends ChangesList {
                if( $rc->mAttribs['rc_type'] == RC_MOVE || $rc->mAttribs['rc_type'] == RC_MOVE_OVER_REDIRECT ) {
                // Log entries
                } elseif( $rc->mAttribs['rc_log_type'] ) {
-                       $logtitle = Title::newFromText( 'Log/'.$rc->mAttribs['rc_log_type'], NS_SPECIAL );
+                       $logtitle = SpecialPage::getTitleFor( 'Log', $rc->mAttribs['rc_log_type'] );
                        $this->insertLog( $s, $logtitle, $rc->mAttribs['rc_log_type'] );
                // Log entries (old format) or log targets, and special pages
                } elseif( $rc->mAttribs['rc_namespace'] == NS_SPECIAL ) {
index 9738a67..d59f1aa 100644 (file)
@@ -621,7 +621,7 @@ class RecentChange {
                        $wgCanonicalServer, $wgScript;
 
                if( $this->mAttribs['rc_type'] == RC_LOG ) {
-                       $titleObj = Title::newFromText( 'Log/' . $this->mAttribs['rc_log_type'], NS_SPECIAL );
+                       $titleObj = SpecialPage::getTitleFor( 'Log', $this->mAttribs['rc_log_type'] );
                } else {
                        $titleObj =& $this->getTitle();
                }