$wgOut->errorpage( 'notargettitle', 'notargettext' );
return;
}
- $nt->setNamespace( Namespace::getUser() );
+ $nt =& Title::makeTitle( NS_USER, $nt->getDBkey() );
$id = User::idFromName( $nt->getText() );
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();
/**
* @access public
*/
function getNamespace() { return $this->mNamespace; }
- /**
- * Set the namespace index
- * @param int $n the namespace index, one of the NS_xxxx constants
- * @access public
- */
- function setNamespace( $n ) { $this->mNamespace = IntVal( $n ); }
/**
* Get the interwiki prefix (or null string)
* @return string