*/
public function finalSetup() {
global $wgCommandLineMode, $wgShowSQLErrors;
- global $wgProfiling, $IP, $wgDBadminuser, $wgDBadminpassword;
+ global $wgProfiling, $wgDBadminuser, $wgDBadminpassword;
global $wgDBuser, $wgDBpassword, $wgDBservers, $wgLBFactoryConf;
# Turn off output buffering again, it might have been turned on in the settings files
}
public function execute() {
- global $IP, $wgDefaultExternalStore, $wgNoDBParam, $wgPasswordSender;
+ global $IP, $wgDefaultExternalStore, $wgNoDBParam;
$wgNoDBParam = true;
$lang = $this->getArg( 0 );
}
public function execute() {
- global $wgUseSquid;
+ global $wgUseSquid, wgSquidServers;
if ( !$wgUseSquid ) {
$this->error( "Squid purge benchmark doesn't do much without squid support on." . true );
} else {
} else {
$output->handleOutput( "Notice - file '$key' not found in group '$group'\n" );
if ( $force ) {
- $outpu->handleOutput( "Got --force, deleting DB entry\n" );
+ $ouput->handleOutput( "Got --force, deleting DB entry\n" );
$dbw->query( "DELETE FROM $tbl_arch WHERE fa_id = $id" );
}
}
}
public function execute() {
- global $IP, $wgUseSharedUploads;
+ global $IP;
$this->mAction = 'fetchLocal';
$this->mBasePath = $this->getOption( 'base', $IP );
$this->mShared = false;
* Execute
*/
public function execute() {
- global $wgScriptPath;
$this->setNamespacePriorities();
$this->url_limit = 50000;
$this->size_limit = pow( 2, 20 ) * 10;
* @return The checks results as wiki text.
*/
function outputWiki() {
- global $wgContLang, $IP;
+ global $wgContLang;
$detailText = '';
$rows[] = '! Language !! Code !! Total !! ' . implode( ' !! ', array_diff( $this->checks, $this->nonMessageChecks() ) );
foreach ( $this->results as $code => $results ) {
$foo = "wgAllMessages$languageCode";
global $$foo;
- global $wgSkinNamesEn; // potentially unused global declaration?
// it might already be loaded in LocalSettings.php
if ( !isset( $$foo ) ) {
" );
$widows = $dbw->numRows( $result );
if ( $widows > 0 ) {
- global $wgContLang;
$this->output( "$widows childless pages...\n" );
$this->output( sprintf( "%10s %11s %2s %s\n", 'page_id', 'page_latest', 'ns', 'page_title' ) );
foreach ( $result as $row ) {
function do_copy_newtalk_to_watchlist() {
global $wgDatabase;
- global $wgCommandLineMode; # this needs to be saved while getID() and getName() are called
$res = $wgDatabase->safeQuery( 'SELECT user_id, user_ip FROM !',
$wgDatabase->tableName( 'user_newtalk' ) );
}
function do_all_updates( $shared = false, $purge = true ) {
- global $wgNewTables, $wgExtModifiedFields, $wgNewFields, $wgRenamedTables, $wgSharedDB, $wgSharedTables, $wgDatabase, $wgDBtype, $IP;
+ global $wgSharedDB, $wgSharedTables, $wgDatabase, $wgDBtype;
wfRunHooks( 'LoadExtensionSchemaUpdates' );
}
function do_log_search_population() {
- global $wgDatabase;
if ( update_row_exists( 'populate log_search' ) ) {
wfOut( "...log_search table already populated.\n" );
return;
}
function do_postgres_updates() {
- global $wgDatabase, $wgVersion, $wgDBmwschema, $wgDBts2schema, $wgShowExceptionDetails, $wgDBuser;
+ global $wgDatabase, $wgDBmwschema, $wgDBts2schema, $wgShowExceptionDetails, $wgDBuser;
# # Gather version numbers in case we need them
$version = $wgDatabase->getServerVersion(); # # long string