Index: branches/liquidthreads/includes/Title.php |
— | — | @@ -2409,9 +2409,13 @@ |
2410 | 2410 | * Currently, a self-link with a fragment and special pages are in |
2411 | 2411 | * this category. System messages that have defined default values are also |
2412 | 2412 | * always known. |
| 2413 | + * |
| 2414 | + * LQT HACK: Talk pages are also always known. |
| 2415 | + * Should talk pages for non-existant articles be known? |
| 2416 | + * Talk pages with no threads? With only archived threads? |
2413 | 2417 | */ |
2414 | 2418 | public function isAlwaysKnown() { |
2415 | | - return ( $this->isExternal() || |
| 2419 | + return ( $this->isExternal() || $this->mNamespace % 2 || |
2416 | 2420 | ( 0 == $this->mNamespace && "" == $this->mDbkeyform ) || |
2417 | 2421 | ( NS_MEDIAWIKI == $this->mNamespace && wfMsgWeirdKey( $this->mDbkeyform ) ) ); |
2418 | 2422 | } |
Index: branches/liquidthreads/includes/SkinTemplate.php |
— | — | @@ -668,7 +668,7 @@ |
669 | 669 | true); |
670 | 670 | |
671 | 671 | wfProfileIn( "$fname-edit" ); |
672 | | - if ( $this->mTitle->quickUserCan( 'edit' ) && ( $this->mTitle->exists() || $this->mTitle->quickUserCan( 'create' ) ) ) { |
| 672 | + if ( !$this->mTitle->isTalkPage() /*LQT HACK*/ && $this->mTitle->quickUserCan( 'edit' ) && ( $this->mTitle->exists() || $this->mTitle->quickUserCan( 'create' ) ) ) { |
673 | 673 | $istalk = $this->mTitle->isTalkPage(); |
674 | 674 | $istalkclass = $istalk?' istalk':''; |
675 | 675 | $content_actions['edit'] = array( |
— | — | @@ -684,7 +684,7 @@ |
685 | 685 | 'href' => $this->mTitle->getLocalUrl( 'action=edit§ion=new' ) |
686 | 686 | ); |
687 | 687 | } |
688 | | - } else { |
| 688 | + } else if ( !$this->mTitle->isTalkPage() /*LQT HACK*/ ) { |
689 | 689 | $content_actions['viewsource'] = array( |
690 | 690 | 'class' => ($action == 'edit') ? 'selected' : false, |
691 | 691 | 'text' => wfMsg('viewsource'), |