r25076 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25075‎ | r25076 | r25077 >
Date:03:57, 23 August 2007
Author:david
Status:old
Tags:
Comment:
Threads no longer have talk pages of their own.
Modified paths:
  • /branches/liquidthreads/extensions/LqtExtension.php (modified) (history)

Diff [purge]

Index: branches/liquidthreads/extensions/LqtExtension.php
@@ -29,6 +29,11 @@
3030 // We are given a talkpage article and title. Find the associated
3131 // non-talk article and pass that to the view.
3232 $article = new Article($title->getSubjectPage());
 33+
 34+ if( $title->getSubjectPage()->getNamespace() == NS_LQT_THREAD ) {
 35+ // Threads don't have talk pages; redirect to the thread page.
 36+ $output->redirect($title->getSubjectPage()->getFullUrl());
 37+ }
3338
3439 /* Certain actions apply to the "header", which is stored in the actual talkpage
3540 in the database. Drop everything and behave like a normal page if those
@@ -1084,6 +1089,7 @@
10851090 function customizeTabs( $skintemplate, $content_actions ) {
10861091 // The arguments are passed in by reference.
10871092 unset($content_actions['edit']);
 1093+ unset($content_actions['talk']);
10881094 /* unset($content_actions['history']);
10891095 unset($content_actions['watch']);
10901096 unset($content_actions['move']);*/

Status & tagging log