*/
public function getLocalURL( $query = '', $variant = false ) {
global $wgArticlePath, $wgScript, $wgServer, $wgRequest;
- global $wgVariantArticlePath, $wgContLang, $wgUser;
+ global $wgVariantArticlePath, $wgContLang;
if ( is_array( $query ) ) {
$query = wfArrayToCGI( $query );
*/
function handleSpecialCases( &$title, &$output, $request ) {
wfProfileIn( __METHOD__ );
- global $wgContLang, $wgUser;
+
$action = $this->getVal( 'Action' );
// Invalid titles. Bug 21776: The interwikis must redirect even if the page name is empty.
* @return {string} JavaScript code for $context
*/
public function getScript( ResourceLoaderContext $context ) {
- global $wgServer, $wgScriptPath;
+ global $wgServer;
$files = array_merge(
$this->scripts,
* @param {string} $path File path of script file to read
* @return {string} CSS data in script file
*/
- protected function readStyleFile( $path ) {
- global $wgScriptPath;
-
+ protected function readStyleFile( $path ) {
$style = file_get_contents( $this->getLocalPath( $path ) );
$dir = $this->getLocalPath( dirname( $path ) );
$remoteDir = $this->getRemotePath( dirname( $path ) );
global $wgUser, $wgOut, $wgHiddenPrefs, $wgEnableEmail;
global $wgRequest, $wgLoginLanguageSelector;
global $wgAuth, $wgEmailConfirmToEdit, $wgCookieExpiration;
- global $wgSecureLogin, $wgSecureLoginStickHTTPS;
+ global $wgSecureLogin;
$titleObj = SpecialPage::getTitleFor( 'Userlogin' );