Page MenuHomePhabricator

bug30245.patch

Authored By
bzimport
Nov 21 2014, 11:54 PM
Size
1 KB
Referenced Files
None
Subscribers
None

bug30245.patch

Index: includes/ChangesList.php
===================================================================
--- includes/ChangesList.php (revision 94048)
+++ includes/ChangesList.php (working copy)
@@ -551,7 +551,7 @@
$this->insertMove( $s, $rc );
// 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: includes/RecentChange.php
===================================================================
--- includes/RecentChange.php (revision 94048)
+++ includes/RecentChange.php (working copy)
@@ -683,7 +683,7 @@
global $wgUseRCPatrol, $wgUseNPPatrol, $wgRC2UDPInterwikiPrefix, $wgLocalInterwiki;
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();
}

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7726
Default Alt Text
bug30245.patch (1 KB)

Event Timeline