Guillaume Beaudoin has uploaded a new change for review.
https://gerrit.wikimedia.org/r/185792
Change subject: Update to branch REL1_19 for legacy lts version.
......................................................................
Update to branch REL1_19 for legacy lts version.
Include translations, .git files and some whitespaces fix.
Change-Id: Ie082368197681d91999c03a16d765fceb8133d4f
---
M googleAnalytics.php
1 file changed, 4 insertions(+), 4 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/googleAnalytics
refs/changes/92/185792/1
diff --git a/googleAnalytics.php b/googleAnalytics.php
index 757ea02..f756a56 100644
--- a/googleAnalytics.php
+++ b/googleAnalytics.php
@@ -12,7 +12,7 @@
'url' =>
'https://www.mediawiki.org/wiki/Extension:Google_Analytics_Integration',
);
-$wgExtensionMessagesFiles['googleAnalytics'] = dirname(__FILE__) .
'/googleAnalytics.i18n.php';
+$wgExtensionMessagesFiles['googleAnalytics'] = dirname( __FILE__ ) .
'/googleAnalytics.i18n.php';
$wgHooks['SkinAfterBottomScripts'][] = 'efGoogleAnalyticsHookText';
$wgHooks['ParserAfterTidy'][] = 'efGoogleAnalyticsASAC';
@@ -26,13 +26,13 @@
global $wgOut, $wgGoogleAnalyticsAccount, $wgGoogleAnalyticsAddASAC;
if( !empty($wgGoogleAnalyticsAccount) && $wgGoogleAnalyticsAddASAC ) {
- $wgOut->addScript('<script
type="text/javascript">window.google_analytics_uacct = "' .
$wgGoogleAnalyticsAccount . '";</script>');
+ $wgOut->addScript( '<script
type="text/javascript">window.google_analytics_uacct = "' .
$wgGoogleAnalyticsAccount . '";</script>' );
}
return true;
}
-function efGoogleAnalyticsHookText( $skin, &$text='' ) {
+function efGoogleAnalyticsHookText( $skin, &$text = '' ) {
$text .= efAddGoogleAnalytics();
return true;
}
@@ -63,5 +63,5 @@
HTML;
}
-///Alias for efAddGoogleAnalytics - backwards compatibility.
+// Alias for efAddGoogleAnalytics - backwards compatibility for MW < 1.19.
function addGoogleAnalytics() { return efAddGoogleAnalytics(); }
--
To view, visit https://gerrit.wikimedia.org/r/185792
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie082368197681d91999c03a16d765fceb8133d4f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/googleAnalytics
Gerrit-Branch: master
Gerrit-Owner: Guillaume Beaudoin <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits