Remove unused global declarations

Change-Id: I05a9bc5c0c0447c045714a445b0ed44f001db1dc
This commit is contained in:
umherirrender 2014-07-19 22:44:54 +02:00
parent 9ede7aa660
commit 301a7f3d1d
5 changed files with 5 additions and 7 deletions

View file

@ -2961,7 +2961,7 @@ $templates
* @return string
*/
function getScriptsForBottomQueue( $inHead ) {
global $wgUseSiteJs, $wgAllowUserJs;
global $wgAllowUserJs;
// Scripts and messages "only" requests marked for bottom inclusion
// If we're in the <head>, use load() calls rather than <script src="..."> tags
@ -3524,7 +3524,7 @@ $templates
* @return string
*/
public function buildCssLinks() {
global $wgUseSiteCss, $wgAllowUserCss, $wgAllowUserCssPrefs, $wgContLang;
global $wgAllowUserCss, $wgContLang;
$this->getSkin()->setupSkinUserCss( $this );

View file

@ -207,7 +207,7 @@ class Preferences {
* @return void
*/
static function profilePreferences( $user, IContextSource $context, &$defaultPreferences ) {
global $wgAuth, $wgContLang, $wgParser, $wgCookieExpiration, $wgLanguageCode,
global $wgAuth, $wgContLang, $wgParser, $wgLanguageCode,
$wgDisableLangConversion, $wgMaxSigChars,
$wgEnableEmail, $wgEmailConfirmToEdit, $wgEnableUserEmail, $wgEmailAuthentication,
$wgEnotifWatchlist, $wgEnotifUserTalk, $wgEnotifRevealEditorAddress,

View file

@ -815,7 +815,7 @@ abstract class Skin extends ContextSource {
* @return string
*/
function getCopyright( $type = 'detect' ) {
global $wgRightsPage, $wgRightsUrl, $wgRightsText, $wgContLang;
global $wgRightsPage, $wgRightsUrl, $wgRightsText;
if ( $type == 'detect' ) {
if ( !$this->isRevisionCurrent()

View file

@ -294,8 +294,7 @@ class SkinTemplate extends Skin {
* @return QuickTemplate The template to be executed by outputPage
*/
protected function prepareQuickTemplate() {
global $wgContLang, $wgScript, $wgStylePath,
$wgMimeType, $wgJsMimeType, $wgXhtmlNamespaces, $wgHtml5Version,
global $wgContLang, $wgScript, $wgStylePath, $wgMimeType, $wgJsMimeType,
$wgDisableCounters, $wgSitename, $wgLogo, $wgMaxCredits,
$wgShowCreditsIfMax, $wgPageShowWatchingUsers, $wgArticlePath,
$wgScriptPath, $wgServer;

View file

@ -126,7 +126,6 @@ class WebInstallerOutput {
public function getCSS() {
// Horrible, horrible hack: the installer is currently hardcoded to use the Vector skin, so load
// it here. Include instead of require, as this will work without it, it will just look bad.
global $wgResourceModules;
global $wgStyleDirectory;
include_once "$wgStyleDirectory/Vector/Vector.php";