# not for special pages or file pages AND only when viewing AND if the page exists
# (or is in MW namespace, because that has default content)
if ( !in_array( $title->getNamespace(), array( NS_SPECIAL, NS_FILE ) ) &&
- in_array( $request->getVal( 'action', 'view' ), array( 'view', 'historysubmit' ) ) &&
+ Action::getActionName( $this ) === 'view' &&
( $title->exists() || $title->getNamespace() == NS_MEDIAWIKI ) ) {
$pageLang = $title->getPageViewLanguage();
$realBodyAttribs['lang'] = $pageLang->getHtmlCode();
$nav_urls['info'] = array(
'text' => $this->msg( 'pageinfo-toolboxlink' )->text(),
- 'href' => $out->getTitle()->getLocalURL( "action=info" )
+ 'href' => $this->getTitle()->getLocalURL( "action=info" )
);
if ( $this->getTitle()->getArticleID() ) {