Jack Phoenix has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/374808 )
Change subject: Version 0.6.3: fix fatal ...................................................................... Version 0.6.3: fix fatal $this is not available in a static function, so we need to use the global function wfMessage here (since we also don't have a local context object available). Also updated copyright year and made some cosmetic adjustments. Change-Id: Ied35cfba2d61b7ce7242f05300489ed771c0ff48 --- M SoftwareVersion.class.php M extension.json 2 files changed, 5 insertions(+), 7 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SoftwareVersion refs/changes/08/374808/1 diff --git a/SoftwareVersion.class.php b/SoftwareVersion.class.php index ff86238..2a283fc 100644 --- a/SoftwareVersion.class.php +++ b/SoftwareVersion.class.php @@ -9,7 +9,7 @@ * @file * @ingroup Extensions * @author Jack Phoenix <[email protected]> - * @copyright Copyright © 2009-2016 Jack Phoenix + * @copyright Copyright © 2009-2017 Jack Phoenix * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later */ @@ -23,7 +23,7 @@ */ public static function addSVNInfo( &$software ) { global $wgVersion, $wgCanonicalServer, $wgSitename, - $wgSoftwareVersionExecutablePath, $IP; + $wgSoftwareVersionExecutablePath, $IP; // Set MW version to $wgVersion $software['[https://www.mediawiki.org/ MediaWiki]'] = $wgVersion; @@ -51,7 +51,7 @@ $json = json_encode( $svnInfo ); $exploded = explode( $newline, $svnInfo ); - if ( $this->getMsg( 'softwareversion-wiki-link' )->isDisabled() ) { + if ( wfMessage( 'softwareversion-wiki-link' )->isDisabled() ) { $wikiLink = "[$wgCanonicalServer $wgSitename]"; } else { $wikiLink = wfMessage( 'softwareversion-wiki-link' )->text(); diff --git a/extension.json b/extension.json index b272a1a..f9f713e 100644 --- a/extension.json +++ b/extension.json @@ -1,6 +1,6 @@ { "name": "SoftwareVersion", - "version": "0.6.2", + "version": "0.6.3", "author": [ "Jack Phoenix", "Samantha Nguyen" @@ -24,9 +24,7 @@ ] }, "Hooks": { - "SoftwareInfo": [ - "SoftwareVersion::addSVNInfo" - ] + "SoftwareInfo": "SoftwareVersion::addSVNInfo" }, "manifest_version": 1 } -- To view, visit https://gerrit.wikimedia.org/r/374808 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ied35cfba2d61b7ce7242f05300489ed771c0ff48 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SoftwareVersion Gerrit-Branch: master Gerrit-Owner: Jack Phoenix <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
