r104541 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104540‎ | r104541 | r104542 >
Date:04:30, 29 November 2011
Author:yaron
Status:deferred
Tags:
Comment:
Added support for MW 1.18+ (?), where Linker::getTitle() was replaced with Linker::getContext()->getTitle()
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormLinker.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormLinker.php
@@ -270,6 +270,8 @@
271271 if ( $linker instanceof DummyLinker ) {
272272 global $wgTitle;
273273 $curTitle = $wgTitle;
 274+ } elseif ( is_callable( array( $linker, 'getContext' ) ) ) {
 275+ $curTitle = $linker->getContext()->getTitle();
274276 } else {
275277 $curTitle = $linker->getTitle();
276278 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r104719Follow-up to r104541 - abandoning the whole getTitle() idea, and just going w...yaron19:18, 30 November 2011