Merge "Removed $wgPageShowWatchingUsers"

This commit is contained in:
jenkins-bot 2014-10-02 21:12:46 +00:00 committed by Gerrit Code Review
commit 25ed2b744c
3 changed files with 2 additions and 19 deletions

View 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

View file

@ -5880,11 +5880,6 @@ $wgAdvertisedFeedTypes = array( 'atom' );
*/
$wgRCShowWatchingUsers = false; # UPO
/**
* Show watching users in Page views
*/
$wgPageShowWatchingUsers = false;
/**
* Show the amount of changed characters in recent changes
*/

View 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 ) );