r106811 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106810‎ | r106811 | r106812 >
Date:16:41, 20 December 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
Follow up to r106810; original def was just wrong, not a compat change
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_PageLister.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_PageLister.php
@@ -100,13 +100,7 @@
101101 * @return string
102102 */
103103 protected function makeSelfLink( Title $title, $linkText, array $parameters ) {
104 - if ( version_compare( $GLOBALS['wgVersion'], '1.18c', '<' ) ) {
105 - $linker = new Linker();
106 - return $linker->link( $title, $linkText, $parameters );
107 - }
108 - else {
109 - return Linker::link( $title, $linkText, array(), $parameters );
110 - }
 104+ return smwfGetLinker()->link( $title, $linkText, array(), $parameters );
111105 }
112106
113107 /**

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r106810compat fixjeroendedauw16:35, 20 December 2011

Status & tagging log