r22594 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22593‎ | r22594 | r22595 >
Date:07:09, 31 May 2007
Author:david
Status:old
Tags:
Comment:
meaningless rearrangement of methods in the file
Modified paths:
  • /branches/liquidthreads/extensions/LqtExtension.php (modified) (history)

Diff [purge]

Index: branches/liquidthreads/extensions/LqtExtension.php
@@ -87,6 +87,10 @@
8888 function commandAppliesToThread( $command, $thread ) {
8989 return $this->request->getVal($command) == $thread->id();
9090 }
 91+
 92+ function permalinkUrl( $thread ) {
 93+ return SpecialPage::getTitleFor('Thread', $thread->id())->getFullURL();
 94+ }
9195
9296 /*************************
9397 * Simple HTML methods *
@@ -103,9 +107,9 @@
104108 $this->output->addHTML( wfCloseElement( 'div' ) );
105109 }
106110
107 - /*******************************
108 - * Output methods with logic *
109 - *******************************/
 111+ /************************************
 112+ * Editing methods (here be dragons) *
 113+ *************************************/
110114
111115 /**
112116 * Return an HTML form element whose value is gotten from the request.
@@ -194,6 +198,9 @@
195199 return Title::newFromText( "Post:$token" );
196200 }
197201
 202+ /*************************
 203+ * Output methods *
 204+ *************************/
198205
199206 function showPostBody( $post ) {
200207 global $wgEnableParserCache;
@@ -233,10 +240,6 @@
234241 return $title->getFullURL( $this->queryStringFromArray($query) );
235242 }
236243
237 - function permalinkUrl( $thread ) {
238 - return SpecialPage::getTitleFor('Thread', $thread->id())->getFullURL();
239 - }
240 -
241244 function showThreadFooter( $thread ) {
242245
243246 $color_number = $this->selectNewUserColor( $thread->rootPost()->originalAuthor() );