private function prepareMessage( $message ) {
global $wgLang;
if( $this->oldimage ) {
- $url = $this->file->getArchiveUrl( $this->oldimage );
return wfMsgExt(
"{$message}-old", # To ensure grep will find them: 'filedelete-intro-old', 'filedelete-nofile-old', 'filedelete-success-old'
'parse',
return false;
}
- $querycache = $dbr->tableName( 'querycache' );
-
if ( $ignoreErrors ) {
$ignoreW = $dbw->ignoreErrors( true );
$ignoreR = $dbr->ignoreErrors( true );
// assume success
$res = true;
// If we are not in a transaction, we need to be for savepoint trickery
- $didbegin = 0;
if (! $this->mTrxLevel) {
$this->begin();
- $didbegin = 1;
}
$sql = "INSERT INTO $table (" . implode( ',', $keys ) . ') VALUES ';
*/
public $showSessionWarning = false;
- public $helpId = 0;
public $tabIndex = 1;
public $currentPageName;
$args = func_get_args();
array_shift( $args );
$args = array_map( 'htmlspecialchars', $args );
-
$text = wfMsgReal( $msg, $args, false, false, false );
$html = $this->parse( $text, true );
wfProfileOut( __METHOD__.'-setup' );
throw new MWException( __METHOD__.": \$this->mTitle is null\n" );
}
- $nottalk = !$this->mTitle->isTalkPage();
-
- if($wgContLang->hasVariants()) {
- $selflink = $wgContLang->convertLinkToAllVariants($this->mTitle->getPrefixedText());
- } else {
- $selflink = array($this->mTitle->getPrefixedText());
- }
+
wfProfileOut( __METHOD__.'-setup' );
$offset = 0;
if ( $t->exists() ) {
$file = wfFindFile( $name, array( 'ignoreRedirect' => true ) );
$empty = "";
- $status = FileDeleteForm::doDelete( $t, $file, $empty, "none", true );
+ FileDeleteForm::doDelete( $t, $file, $empty, "none", true );
$a = new Article ( $t );
$a->doDeleteArticle( "testing" );
}
global $wgDatabase, $wgDBmwschema, $wgDBts2schema, $wgDBuser;
# # Gather version numbers in case we need them
- $version = $wgDatabase->getServerVersion(); # # long string
$numver = $wgDatabase->numeric_version; # # X.Y e.g. 8.3
# Just in case their LocalSettings.php does not have this: