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 @@
271
271
if ( $linker instanceof DummyLinker ) {
272
272
global $wgTitle;
273
273
$curTitle = $wgTitle;
274
+ } elseif ( is_callable( array( $linker, 'getContext' ) ) ) {
275
+ $curTitle = $linker->getContext()->getTitle();
274
276
} else {
275
277
$curTitle = $linker->getTitle();
276
278
}
Follow-up revisions
Revision
Commit summary
Author
Date
r104719
Follow-up to
r104541
- abandoning the whole getTitle() idea, and just going w...
yaron
19:18, 30 November 2011