r24184 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24183‎ | r24184 | r24185 >
Date:23:10, 16 July 2007
Author:david
Status:old
Tags:
Comment:
trivial change: use Title::getSubjectPage as is proper
Modified paths:
  • /branches/liquidthreads/extensions/LqtExtension.php (modified) (history)

Diff [purge]

Index: branches/liquidthreads/extensions/LqtExtension.php
@@ -27,9 +27,7 @@
2828 static function talkpageMain(&$output, &$talk_article, &$title, &$user, &$request) {
2929 // We are given a talkpage article and title. Find the associated
3030 // non-talk article and pass that to the view.
31 - $article_title = Title::makeTitle($title->getNamespace() - 1,
32 - $title->getDBkey());
33 - $article = new Article($article_title);
 31+ $article = new Article($title->getSubjectPage());
3432
3533 if ( $request->getVal('lqt_method') == 'talkpage_archive' ) {
3634 $viewname = self::$views['TalkpageArchiveView'];

Status & tagging log