r23920 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23919‎ | r23920 | r23921 >
Date:21:01, 9 July 2007
Author:david
Status:old
Tags:
Comment:
oops
Modified paths:
  • /branches/liquidthreads/extensions/LqtExtension.php (modified) (history)

Diff [purge]

Index: branches/liquidthreads/extensions/LqtExtension.php
@@ -59,17 +59,19 @@
6060 static function tryPage( $output, $article, $title, $user, $request ) {
6161 if ( $title->isTalkPage() ) {
6262 self::talkpageMain ($output, $article, $title, $user, $request);
63 - return true;
 63+ return false;
6464 } else if ( $title->getNamespace() == NS_LQT_THREAD ) {
6565 self::threadPermalinkMain($output, $article, $title, $user, $request);
66 - return true;
 66+ return false;
6767 }
68 - return false;
 68+ return true;
6969 }
7070 }
7171
 72+
7273 $wgHooks['MediaWikiPerformAction'][] = array('LqtDispatch::tryPage');
7374
 75+
7476 class LqtView {
7577 protected $article;
7678 protected $output;
@@ -641,7 +643,7 @@
642644
643645 $this->showArchiveWidget();
644646
645 - var_dump(HistoricalThread::withIdAtRevision(3,11));
 647+// var_dump(HistoricalThread::withIdAtRevision(3,11));
646648
647649 if( $this->methodApplies('talkpage_new_thread') ) {
648650 $this->showNewThreadForm();

Status & tagging log