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();
 		}
