if( is_null( $nt ) ) {
return $this->uploadError( wfMsg( 'illegalfilename', htmlspecialchars( $filtered ) ) );
}
- $nt->setNamespace( NS_IMAGE );
+ $nt =& Title::makeTitle( NS_IMAGE, $nt->getDBkey() );
$this->mUploadSaveName = $nt->getDBkey();
/**
global $wgOut;
$sub = wfMsg( 'uploadwarning' );
$wgOut->addHTML( "<h2>{$sub}</h2>\n" );
- $wgOut->addHTML( "<h4 style='error'>{$error}</h4>\n" );
+ $wgOut->addHTML( "<h4 class='error'>{$error}</h4>\n" );
}
/**
<input type=hidden name=\"wpUploadAffirm\" value=\"1\" />
<input type=hidden name=\"wpIgnoreWarning\" value=\"1\" />
<input type=hidden name=\"wpSessionKey\" value=\"" . htmlspecialchars( $this->mSessionKey ) . "\" />
+ <input type=hidden name=\"wpUploadDescription\" value=\"" . htmlspecialchars( $this->mUploadDescription ) . "\" />
{$copyright}
<table border='0'><tr>
<tr><td align='right'>
if ( '' != $msg ) {
$sub = wfMsg( 'uploaderror' );
$wgOut->addHTML( "<h2>{$sub}</h2>\n" .
- "<h4 style='error'>{$msg}</h4>\n" );
+ "<h4 class='error'>{$msg}</h4>\n" );
} else {
$sub = wfMsg( 'uploadfile' );
$wgOut->addHTML( "<h2>{$sub}</h2>\n" );