Fix regression in r78117 per CR, was causing read, edit and history tabs to disappear...
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 10 Dec 2010 10:55:41 +0000 (10:55 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 10 Dec 2010 10:55:41 +0000 (10:55 +0000)
includes/SkinTemplate.php
skins/Vector.php

index 313225d..7821a58 100644 (file)
@@ -728,7 +728,7 @@ class SkinTemplate extends Skin {
                $action = $wgRequest->getVal( 'action', 'view' );
                $section = $wgRequest->getVal( 'section' );
                $content_actions = array();
-               $userCanRead = $this->mTitle->quickUserCan( 'read' );
+               $userCanRead = $this->mTitle->userCanRead();
 
                $prevent_active_tabs = false;
                wfRunHooks( 'SkinTemplatePreventOtherActiveTabs', array( &$this, &$prevent_active_tabs ) );
index 6ee6897..27fb9e8 100644 (file)
@@ -73,7 +73,7 @@ class SkinVector extends SkinTemplate {
                $action = $wgRequest->getVal( 'action', 'view' );
                $section = $wgRequest->getVal( 'section' );
 
-               $userCanRead = $this->mTitle->quickUserCan( 'read' );
+               $userCanRead = $this->mTitle->userCanRead();
 
                // Checks if page is some kind of content
                if( $this->iscontent ) {