Merge "Removed $wgPageShowWatchingUsers"
This commit is contained in:
commit
25ed2b744c
3 changed files with 2 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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 ) );
|
||||
|
|
|
|||
Loading…
Reference in a new issue