# not especially useful as a returnto parameter. Use the title
# from the request instead, if there was one.
$request = $this->getRequest();
- $returnto = Title::newFromURL( $request->getVal( 'title', '' ) );
+ $returnto = Title::newFromText( $request->getVal( 'title', '' ) );
if ( $action == 'edit' ) {
$msg = 'whitelistedittext';
$displayReturnto = $returnto;
if ( $search !== '' && !$this->getConfig()->get( 'MiserMode' ) ) {
$this->mSearch = $search;
- $nt = Title::newFromURL( $this->mSearch );
+ $nt = Title::newFromText( $this->mSearch );
if ( $nt ) {
$dbr = wfGetDB( DB_SLAVE );
}
if ( $this->mSearch !== '' ) {
- $nt = Title::newFromURL( $this->mSearch );
+ $nt = Title::newFromText( $this->mSearch );
if ( $nt ) {
$dbr = wfGetDB( DB_SLAVE );
$conds[] = 'LOWER(' . $prefix . '_name)' .
// target page
if ( $this->mSubmitted ) {
- $this->mTargetObj = Title::newFromURL( $this->mTarget );
- $this->mDestObj = Title::newFromURL( $this->mDest );
+ $this->mTargetObj = Title::newFromText( $this->mTarget );
+ $this->mDestObj = Title::newFromText( $this->mDest );
} else {
$this->mTargetObj = null;
$this->mDestObj = null;
if ( !$this->getConfig()->get( 'MiserMode' ) && $this->like !== null ) {
$dbr = wfGetDB( DB_SLAVE );
- $likeObj = Title::newFromURL( $this->like );
+ $likeObj = Title::newFromText( $this->like );
if ( $likeObj instanceof Title ) {
$like = $dbr->buildLike(
$dbr->anyString(),
return false;
}
$outputPage = $this->getOutput();
- $title = Title::newFromURL( $target );
+ $title = Title::newFromText( $target );
if ( !$title || $title->isExternal() ) {
$outputPage->addHtml( '<div class="errorbox">' . $this->msg( 'allpagesbadtitle' )
->parse() . '</div>' );
$this->mTargetObj = null;
if ( $this->mTarget !== null && $this->mTarget !== '' ) {
- $this->mTargetObj = Title::newFromURL( $this->mTarget );
+ $this->mTargetObj = Title::newFromText( $this->mTarget );
}
$this->mSearchPrefix = $request->getText( 'prefix' );
// Bind to member variable
$this->opts = $opts;
- $this->target = Title::newFromURL( $opts->getValue( 'target' ) );
+ $this->target = Title::newFromText( $opts->getValue( 'target' ) );
if ( !$this->target ) {
if ( !$this->including() ) {
$out->addHTML( $this->whatlinkshereForm() );