Removed $wgPageShowWatchingUsers
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 1 Oct 2014 17:10:07 +0000 (10:10 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 1 Oct 2014 17:13:18 +0000 (10:13 -0700)
Change-Id: I1e3d17f1954c7b4427a22cd9a781012061d3e710

RELEASE-NOTES-1.25
includes/DefaultSettings.php
includes/skins/SkinTemplate.php

index e5a6cd1..20bc782 100644 (file)
@@ -9,6 +9,7 @@ MediaWiki 1.25 is an alpha-quality branch and is not recommended for use in
 production.
 
 === Configuration changes in 1.25 ===
+* $wgPageShowWatchingUsers was removed.
 
 === New features in 1.25 ===
 * (bug 58139) ResourceLoaderFileModule now supports language fallback
index e9b5746..d1bbc36 100644 (file)
@@ -5885,11 +5885,6 @@ $wgAdvertisedFeedTypes = array( 'atom' );
  */
 $wgRCShowWatchingUsers = false; # UPO
 
-/**
- * Show watching users in Page views
- */
-$wgPageShowWatchingUsers = false;
-
 /**
  * Show the amount of changed characters in recent changes
  */
index 64ad816..c1db302 100644 (file)
@@ -261,7 +261,7 @@ class SkinTemplate extends Skin {
        protected function prepareQuickTemplate() {
                global $wgContLang, $wgScript, $wgStylePath, $wgMimeType, $wgJsMimeType,
                        $wgDisableCounters, $wgSitename, $wgLogo, $wgMaxCredits,
-                       $wgShowCreditsIfMax, $wgPageShowWatchingUsers, $wgArticlePath,
+                       $wgShowCreditsIfMax, $wgArticlePath,
                        $wgScriptPath, $wgServer;
 
                wfProfileIn( __METHOD__ );
@@ -386,19 +386,6 @@ class SkinTemplate extends Skin {
                                        }
                                }
 
-                               if ( $wgPageShowWatchingUsers ) {
-                                       $dbr = wfGetDB( DB_SLAVE );
-                                       $num = $dbr->selectField( 'watchlist', 'COUNT(*)',
-                                               array( 'wl_title' => $title->getDBkey(), 'wl_namespace' => $title->getNamespace() ),
-                                               __METHOD__
-                                       );
-                                       if ( $num > 0 ) {
-                                               $tpl->set( 'numberofwatchingusers',
-                                                       $this->msg( 'number_of_watching_users_pageview' )->numParams( $num )->parse()
-                                               );
-                                       }
-                               }
-
                                if ( $wgMaxCredits != 0 ) {
                                        $tpl->set( 'credits', Action::factory( 'credits', $this->getWikiPage(),
                                                $this->getContext() )->getCredits( $wgMaxCredits, $wgShowCreditsIfMax ) );