jenkins-bot has submitted this change and it was merged.

Change subject: Rename class to TwnUserStats to prevent clash
......................................................................


Rename class to TwnUserStats to prevent clash

A class UserStats is already present in the extension SocialProfile.

Change-Id: Ie08acc27e33071cd376ecba8df5740233ca19e0c
---
M Autoload.php
R TwnUserStats.php
M specials/SpecialTwnMainPage.php
3 files changed, 4 insertions(+), 4 deletions(-)

Approvals:
  Nikerabbit: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/Autoload.php b/Autoload.php
index 03f4690..a73124d 100644
--- a/Autoload.php
+++ b/Autoload.php
@@ -14,5 +14,5 @@
 $wgAutoloadClasses['ProjectHandler'] = "$dir/ProjectHandler.php";
 $wgAutoloadClasses['ResourceLoaderProjectIconsModule'] =
        "$dir/ResourceLoaderProjectIconsModule.php";
-$wgAutoloadClasses['UserStats'] = "$dir/UserStats.php";
+$wgAutoloadClasses['TwnUserStats'] = "$dir/TwnUserStats.php";
 $wgAutoloadClasses['SpecialTwnMainPage'] = 
"$dir/specials/SpecialTwnMainPage.php";
diff --git a/UserStats.php b/TwnUserStats.php
similarity index 98%
rename from UserStats.php
rename to TwnUserStats.php
index d293169..7dbb723 100644
--- a/UserStats.php
+++ b/TwnUserStats.php
@@ -7,7 +7,7 @@
  * @license GPL2+
  */
 
-class UserStats {
+class TwnUserStats {
        public static function getTranslationRankings( $language, $days = 7 ) {
                global $wgTranslateMessageNamespaces;
 
diff --git a/specials/SpecialTwnMainPage.php b/specials/SpecialTwnMainPage.php
index 4f4c4b4..937f5fa 100644
--- a/specials/SpecialTwnMainPage.php
+++ b/specials/SpecialTwnMainPage.php
@@ -426,8 +426,8 @@
        // Callback for CachedStat
        public static function getUserStats( $code, $period ) {
                return array(
-                       'translators' => UserStats::getTranslationRankings( 
$code, $period ),
-                       'proofreaders' => UserStats::getProofreadRankings( 
$code, $period ),
+                       'translators' => TwnUserStats::getTranslationRankings( 
$code, $period ),
+                       'proofreaders' => TwnUserStats::getProofreadRankings( 
$code, $period ),
                );
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/102648
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie08acc27e33071cd376ecba8df5740233ca19e0c
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/TwnMainPage
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
Gerrit-Reviewer: Amire80 <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to