Revert r18540; unilateral change to recentchanges formatting
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 23 Dec 2006 22:13:11 +0000 (22:13 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 23 Dec 2006 22:13:11 +0000 (22:13 +0000)
RELEASE-NOTES
includes/ChangesList.php

index 5520e6c..da8b598 100644 (file)
@@ -398,7 +398,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 7612) Remove superfluous link to Special:Categories from result items
   on Special:Mostcategories
 * {{PLURAL:}} now handles formatted numbers correctly
-* Moved the timestamps to the begin of each line in recentchanges
 
 == Languages updated ==
 
index 9ba4a80..a2c1a26 100644 (file)
@@ -181,13 +181,13 @@ class ChangesList {
                global $wgContLang;
                $articlelink .= $wgContLang->getDirMark();
 
-               $s .= ' ' . $articlelink . ' . . ';
+               $s .= ' '.$articlelink;
        }
 
        function insertTimestamp(&$s, $rc) {
                global $wgLang;
                # Timestamp
-               $s .= $wgLang->time( $rc->mAttribs['rc_timestamp'], true, true ) . ' . . ';
+               $s .= '; ' . $wgLang->time( $rc->mAttribs['rc_timestamp'], true, true ) . ' . . ';
        }
 
        /** Insert links to user page, user talk page and eventually a blocking link */
@@ -237,7 +237,6 @@ class OldChangesList extends ChangesList {
                $this->insertDateHeader($s,$rc_timestamp);
 
                $s .= '<li>';
-               $this->insertTimestamp($s,$rc);
 
                // moved pages
                if( $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) {
@@ -265,6 +264,8 @@ class OldChangesList extends ChangesList {
 
                wfProfileIn( $fname.'-rest' );
 
+               $this->insertTimestamp($s,$rc);
+
                if( $wgRCShowChangedSize ) {
                        $s .= ( $rc->getCharacterDifference() == '' ? '' : $rc->getCharacterDifference() . ' . . ' );
                }