r24300 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24299‎ | r24300 | r24301 >
Date:02:41, 21 July 2007
Author:david
Status:old
Tags:
Comment:
link from headers back to talk pages
Modified paths:
  • /branches/liquidthreads/extensions/LqtExtension.php (modified) (history)

Diff [purge]

Index: branches/liquidthreads/extensions/LqtExtension.php
@@ -61,6 +61,12 @@
6262 } else if ( $title->getNamespace() == NS_LQT_THREAD ) {
6363 self::threadPermalinkMain($output, $article, $title, $user, $request);
6464 return false;
 65+ } else if ($title->getNamespace() == NS_LQT_HEADER) {
 66+ $talkt = Title::newFromText( $title->getText() );
 67+ $url = $talkt->getFullURL();
 68+ $name = $talkt->getPrefixedText();
 69+ $output->setSubtitle("part of <a href=\"$url\">$name</a>.");
 70+ return true;
6571 }
6672 return true;
6773 }

Status & tagging log