JavaScriptContentHandler: Fix typo in comment block (actual: 'CSS'; intended: 'JS')
[lhc/web/wiklou.git] / includes / SkinTemplate.php
index a2e6b99..341983d 100644 (file)
@@ -398,7 +398,7 @@ class SkinTemplate extends Skin {
                # 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();
@@ -1189,7 +1189,7 @@ class SkinTemplate extends Skin {
 
                        $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() ) {