r24306 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24305‎ | r24306 | r24307 >
Date:06:47, 21 July 2007
Author:david
Status:old
Tags:
Comment:
correctly display titles in non-main namespaces
Modified paths:
  • /branches/liquidthreads/extensions/LqtExtension.php (modified) (history)

Diff [purge]

Index: branches/liquidthreads/extensions/LqtExtension.php
@@ -684,7 +684,7 @@
685685 global $wgHooks;
686686 $wgHooks['SkinTemplateTabs'][] = array($this, 'customizeTabs');
687687
688 - $this->output->setPageTitle( "Talk:" . $this->title->getText() ); // TODO non-main namespaces.
 688+ $this->output->setPageTitle( $this->title->getTalkpage()->getPrefixedText() );
689689 $this->addJSandCSS();
690690
691691 $this->showHeader();
@@ -901,7 +901,7 @@
902902 global $wgHooks;
903903 $wgHooks['SkinTemplateTabs'][] = array($this, 'customizeTabs');
904904
905 - $this->output->setPageTitle( "Talk:" . $this->title->getText() ); // TODO non-main namespaces.
 905+ $this->output->setPageTitle( $this->title->getTalkpage()->getPrefixedText() );
906906 $this->addJSandCSS();
907907
908908 $empty = $this->showSearchForm();

Status & tagging log