$this->outputHeader();
$out = $this->getOutput();
- $out->addHelpLink( 'Help:New images' );
+ $this->addHelpLink( 'Help:New images' );
$pager = new NewFilesPager( $this->getContext(), $par );
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(),