$returnto = $rc->getAttribute( 'rc_type' ) == RC_NEW ? 'Newpages' : 'Recentchanges';
$return = SpecialPage::getTitleFor( $returnto );
- $dbw = wfGetDB( DB_MASTER );
$errors = $rc->doMarkPatrolled();
if ( in_array( array( 'rcpatroldisabled' ), $errors ) ) {
/** @name Static cache variables */
// @{
static private $titleCache = array();
- static private $interwikiCache = array();
// @}
/**
* @return \type{\bool} TRUE or FALSE
*/
public function isValidMoveTarget( $nt ) {
- $dbw = wfGetDB( DB_MASTER );
# Is it an existing file?
if ( $nt->getNamespace() == NS_FILE ) {
$file = wfLocalFile( $nt );
class FauxRequest extends WebRequest {
private $wasPosted = false;
private $session = array();
- private $response;
/**
* @param $data Array of *non*-urlencoded key => value pairs, the
private $stmt;
private $nrows;
- private $unique;
private function array_unique_md( $array_in ) {
$array_out = array();
$array_hashes = array();
* @ingroup ExternalUser
*/
class ExternalUser_vB extends ExternalUser {
- private $mDb, $mRow;
+ private $mRow;
protected function initFromName( $name ) {
return $this->initFromCond( array( 'username' => $name ) );
* @since 1.17
*/
class CliInstaller extends CoreInstaller {
-
- /* The maintenance class in effect */
- private $maint;
-
private $optionMap = array(
'dbtype' => 'wgDBtype',
'dbserver' => 'wgDBserver',
class WebInstaller_Complete extends WebInstallerPage {
public function execute() {
- global $IP;
$this->startForm();
$this->addHTML(
$this->parent->getInfoBox(
return (boolean) $data;
}
function getLongDesc( $image ) {
- global $wgUser, $wgLang;
- $sk = $wgUser->getSkin();
+ global $wgLang;
$original = parent::getLongDesc( $image );
wfSuppressWarnings();
$titleRegex = "/^([{$tc}]+)$/sD";
}
- $sk = $this->mOptions->getSkin();
$holders = new LinkHolderArray( $this );
if( is_null( $this->mTitle ) ) {
* and all that fun stuff
*/
function start() {
- global $wgDBtype;
parent::start();
if ( ! $this->db->tableExists( 'testrun' )
protected static $apiUrl;
function setup() {
- global $wgServerName, $wgServer, $wgContLang, $wgAuth, $wgScriptPath,
+ global $wgServer, $wgContLang, $wgAuth, $wgScriptPath,
$wgScriptExtension, $wgMemc, $wgRequest;
self::$apiUrl = $wgServer . $wgScriptPath . "/api" . $wgScriptExtension;
var $db;
function setUp() {
- global $wgDBprefix, $wgDBtype;
$this->db = wfGetDB( DB_MASTER );
if ( !$this->db ) {
$this->markTestIncomplete( "Can't find a database to test with." );
# Test offset usage for a given language::userAdjust
function testUserAdjust() {
- global $wgLocalTZoffset, $wgContLang, $wgUser;
+ global $wgLocalTZoffset, $wgContLang;
$wgContLang = $en = Language::factory( 'en' );
static $altUserName;
function setUp() {
- global $wgAutoloadLocalClasses, $wgLocaltimezone, $wgLocalTZoffset;
+ global $wgLocaltimezone, $wgLocalTZoffset;
self::$userName = "Useruser";
self::$altUserName = "Altuseruser";
date_default_timezone_set( $wgLocaltimezone );
}
function setUserPerm( $perm ) {
- global $wgUseRCPatrol, $wgUseNPPatrol;
if ( is_array( $perm ) ) {
self::$user->mRights = $perm;
} else {
class UploadFromUrlTest extends ApiTestSetup {
function setUp() {
- global $wgEnableUploads, $wgLocalFileRepo, $wgAllowCopyUploads;
+ global $wgEnableUploads, $wgAllowCopyUploads;
$wgEnableUploads = true;
$wgAllowCopyUploads = true;
$wgUser, $wgLang, $wgOut, $wgRequest, $wgStyleDirectory, $wgEnableParserCache,
$wgMessageCache, $wgUseDatabaseMessages, $wgMsgCacheExpiry, $parserMemc,
$wgNamespaceAliases, $wgNamespaceProtection, $wgLocalFileRepo,
- $wgNamespacesWithSubpages, $wgThumbnailScriptPath, $wgScriptPath,
+ $wgThumbnailScriptPath, $wgScriptPath,
$wgArticlePath, $wgStyleSheetPath, $wgScript, $wgStylePath;
$wgScript = '/index.php';
$messageMemc =& wfGetMessageCacheStorage();
$parserMemc =& wfGetParserCacheStorage();
- $wgContLang = new StubContLang;
+ //$wgContLang = new StubContLang;
$wgUser = new StubUser;
$wgLang = new StubUserLang;
$wgOut = new StubObject( 'wgOut', 'OutputPage' );
}
public function start() {
- global $wgSeleniumTestsBrowsers, $wgSeleniumTestsSeleniumHost;
parent::start();
$this->isStarted = true;
}