Index: branches/liquidthreads/extensions/LqtExtension.php |
— | — | @@ -87,6 +87,10 @@ |
88 | 88 | function commandAppliesToThread( $command, $thread ) { |
89 | 89 | return $this->request->getVal($command) == $thread->id(); |
90 | 90 | } |
| 91 | + |
| 92 | + function permalinkUrl( $thread ) { |
| 93 | + return SpecialPage::getTitleFor('Thread', $thread->id())->getFullURL(); |
| 94 | + } |
91 | 95 | |
92 | 96 | /************************* |
93 | 97 | * Simple HTML methods * |
— | — | @@ -103,9 +107,9 @@ |
104 | 108 | $this->output->addHTML( wfCloseElement( 'div' ) ); |
105 | 109 | } |
106 | 110 | |
107 | | - /******************************* |
108 | | - * Output methods with logic * |
109 | | - *******************************/ |
| 111 | + /************************************ |
| 112 | + * Editing methods (here be dragons) * |
| 113 | + *************************************/ |
110 | 114 | |
111 | 115 | /** |
112 | 116 | * Return an HTML form element whose value is gotten from the request. |
— | — | @@ -194,6 +198,9 @@ |
195 | 199 | return Title::newFromText( "Post:$token" ); |
196 | 200 | } |
197 | 201 | |
| 202 | + /************************* |
| 203 | + * Output methods * |
| 204 | + *************************/ |
198 | 205 | |
199 | 206 | function showPostBody( $post ) { |
200 | 207 | global $wgEnableParserCache; |
— | — | @@ -233,10 +240,6 @@ |
234 | 241 | return $title->getFullURL( $this->queryStringFromArray($query) ); |
235 | 242 | } |
236 | 243 | |
237 | | - function permalinkUrl( $thread ) { |
238 | | - return SpecialPage::getTitleFor('Thread', $thread->id())->getFullURL(); |
239 | | - } |
240 | | - |
241 | 244 | function showThreadFooter( $thread ) { |
242 | 245 | |
243 | 246 | $color_number = $this->selectNewUserColor( $thread->rootPost()->originalAuthor() ); |