Santhosh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/199603

Change subject: Remove the User namespace vs Main namespace publishing summary
......................................................................

Remove the User namespace vs Main namespace publishing summary

All publishing is at Main namespace now

Change-Id: Icbf858b92d0aaa267d5990f7f1f408cc564e4106
---
M specials/SpecialContentTranslationStats.php
1 file changed, 0 insertions(+), 26 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/03/199603/1

diff --git a/specials/SpecialContentTranslationStats.php 
b/specials/SpecialContentTranslationStats.php
index 33f9274..1a91115 100644
--- a/specials/SpecialContentTranslationStats.php
+++ b/specials/SpecialContentTranslationStats.php
@@ -28,32 +28,6 @@
 
                // @TODO better to return title => stats iterator
                $stats = ContentTranslation\Stats::getStats();
-               $out->addHtml( $this->getPagesSummary( $stats ) );
                $out->addModules( 'ext.cx.stats' );
-       }
-
-       private function getPagesSummary( $pages ) {
-               $total = $main = 0;
-
-               foreach ( $pages as $row ) {
-                       $title = Title::newFromRow( $row );
-
-                       $total++;
-                       if ( $title->inNamespace( NS_MAIN ) ) {
-                               $main++;
-                       }
-               }
-
-               if ( $total > 0 ) {
-                       $percentage = round( $main / $total * 100 );
-               } else {
-                       $percentage = 0;
-               }
-
-               $summary = wfMessage( 'cx-stats-summary' )
-                       ->numParams( $main, $total, $percentage )
-                       ->parse();
-
-               return $summary;
        }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icbf858b92d0aaa267d5990f7f1f408cc564e4106
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to