r106810 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106809‎ | r106810 | r106811 >
Date:16:35, 20 December 2011
Author:jeroendedauw
Status:resolved
Tags:
Comment:
compat fix
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_PageLister.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_PageLister.php
@@ -100,7 +100,13 @@
101101 * @return string
102102 */
103103 protected function makeSelfLink( Title $title, $linkText, array $parameters ) {
104 - return smwfGetLinker()->link( $title, $linkText, $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+ }
105111 }
106112
107113 /**

Follow-up revisions

RevisionCommit summaryAuthorDate
r106811Follow up to r106810; original def was just wrong, not a compat changejeroendedauw16:41, 20 December 2011

Status & tagging log