r91411 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91410‎ | r91411 | r91412 >
Date:16:37, 4 July 2011
Author:kipcool
Status:deferred
Tags:
Comment:
Compatibility of Wikidata page history with MediaWiki 1.17
Modified paths:
  • /trunk/extensions/Wikidata/OmegaWiki/Editor.php (modified) (history)
  • /trunk/extensions/Wikidata/includes/WikidataPageHistory.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/includes/WikidataPageHistory.php
@@ -6,7 +6,7 @@
77 wfProfileIn( __METHOD__ );
88
99 global $wdHandlerClasses;
10 - $ns = $this->mTitle->getNamespace();
 10+ $ns = $this->getTitle()->getNamespace();
1111 $handlerClass = $wdHandlerClasses[ $ns ];
1212 $handlerInstance = new $handlerClass();
1313 $handlerInstance->history();
Index: trunk/extensions/Wikidata/OmegaWiki/Editor.php
@@ -2100,7 +2100,7 @@
21012101 $wgUser;
21022102
21032103 if ( $value != "" )
2104 - return $wgUser->getSkin()->makeLink( "User:" . $value, $value );
 2104+ return $wgUser->getSkin()->makeLinkObj( Title::newFromText( "User:" . $value ), $value );
21052105 else
21062106 return "";
21072107 }

Status & tagging log