Index: trunk/extensions/LiquidThreads/pages/ThreadPermalinkView.php |
— | — | @@ -13,7 +13,10 @@ |
14 | 14 | if ($this->thread) { |
15 | 15 | $article_t = $this->thread->article()->getTitle(); |
16 | 16 | $talk_t = $this->thread->article()->getTitle(); |
| 17 | + } else { |
| 18 | + return true; |
17 | 19 | } |
| 20 | + |
18 | 21 | efInsertIntoAssoc( 'article', array( |
19 | 22 | 'text' => wfMsg( $article_t->getNamespaceKey() ), |
20 | 23 | 'href' => $article_t->getFullURL(), |
— | — | @@ -64,6 +67,7 @@ |
65 | 68 | |
66 | 69 | function showMissingThreadPage() { |
67 | 70 | wfLoadExtensionMessages( 'LiquidThreads' ); |
| 71 | + $this->output->setPageTitle( wfMsg( 'lqt_nosuchthread_title' ) ); |
68 | 72 | $this->output->addHTML( wfMsg( 'lqt_nosuchthread' ) ); |
69 | 73 | } |
70 | 74 | |
Index: trunk/extensions/LiquidThreads/Lqt.i18n.php |
— | — | @@ -70,7 +70,8 @@ |
71 | 71 | 'lqt_summary_label' => 'This thread has been summarized as follows:', |
72 | 72 | 'lqt_summary_subtitle' => 'the summary of $1.', |
73 | 73 | 'lqt_nosuchrevision' => 'There is no such revision of this thread.', |
74 | | - 'lqt_nosuchthread' => 'There is no such thread.', |
| 74 | + 'lqt_nosuchthread' => 'The thread you specified does not exist.', |
| 75 | + 'lqt_nosuchthread_title' => 'No such thread', |
75 | 76 | 'lqt_threadrequired' => 'You must specify a thread in the URL.', |
76 | 77 | 'lqt_move_movingthread' => 'Moving $1. |
77 | 78 | This thread is part of $2.', |