Yaron Koren has uploaded a new change for review. https://gerrit.wikimedia.org/r/187173
Change subject: Added 2nd attempt to set $title in smartParse() ...................................................................... Added 2nd attempt to set $title in smartParse() Change-Id: Iaf9c3a2b41c1894ef69a3dbfaf863208b94151b1 --- M CargoUtils.php 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Cargo refs/changes/73/187173/1 diff --git a/CargoUtils.php b/CargoUtils.php index 8c94303..430617f 100644 --- a/CargoUtils.php +++ b/CargoUtils.php @@ -190,6 +190,11 @@ $parser = $wgParser; } $title = $parser->getTitle(); + if ( is_null( $title ) ) { + global $wgTitle; + $title = $wgTitle; + } + if ( $title != null && $title->isSpecial( 'RunJobs' ) ) { // Conveniently, if this is called from within a job // being run, the name of the page will be -- To view, visit https://gerrit.wikimedia.org/r/187173 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iaf9c3a2b41c1894ef69a3dbfaf863208b94151b1 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Cargo Gerrit-Branch: master Gerrit-Owner: Yaron Koren <yaro...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits