FU r100300, r100286:
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 20 Oct 2011 00:41:48 +0000 (00:41 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 20 Oct 2011 00:41:48 +0000 (00:41 +0000)
* Updated link batch code in MergeHistory
* Marked some Revision functions explicitly public

includes/Revision.php
includes/specials/SpecialMergeHistory.php

index 065d7f9..a379d88 100644 (file)
@@ -305,7 +305,7 @@ class Revision {
         * Return the list of text fields that should be selected to read the
         * revision text
         */
-       static function selectTextFields() {
+       public static function selectTextFields() {
                return array(
                        'old_text',
                        'old_flags'
@@ -315,7 +315,7 @@ class Revision {
        /**
         * Return the list of page fields that should be selected from page table
         */
-       static function selectPageFields() {
+       public static function selectPageFields() {
                return array(
                        'page_namespace',
                        'page_title',
@@ -326,7 +326,7 @@ class Revision {
        /**
         * Return the list of user fields that should be selected from user table
         */
-       static function selectUserFields() {
+       public static function selectUserFields() {
                return array( 'COALESCE(user_name,rev_user_text) AS rev_user_name' );
        }
 
index 1d9960a..2d86131 100644 (file)
@@ -452,8 +452,8 @@ class MergeHistoryPager extends ReverseChronologicalPager {
                # Give some pointers to make (last) links
                $this->mForm->prevId = array();
                foreach ( $this->mResult as $row ) {
-                       $batch->addObj( Title::makeTitleSafe( NS_USER, $row->rev_user_text ) );
-                       $batch->addObj( Title::makeTitleSafe( NS_USER_TALK, $row->rev_user_text ) );
+                       $batch->addObj( Title::makeTitleSafe( NS_USER, $row->rev_user_name ) );
+                       $batch->addObj( Title::makeTitleSafe( NS_USER_TALK, $row->rev_user_name ) );
 
                        $rev_id = isset( $rev_id ) ? $rev_id : $row->rev_id;
                        if( $rev_id > $row->rev_id ) {