Use getRawUserText function, since this is just there to trigger index usage for...
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 15 Jan 2009 17:33:13 +0000 (17:33 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 15 Jan 2009 17:33:13 +0000 (17:33 +0000)
includes/diff/DifferenceEngine.php

index a44650f..8233451 100644 (file)
@@ -172,15 +172,15 @@ CONTROL;
                                // Look for an unpatrolled change corresponding to this diff
                                $db = wfGetDB( DB_SLAVE );
                                $change = RecentChange::newFromConds(
-                               array(
-                               // Add redundant user,timestamp condition so we can use the existing index
-                                               'rc_user_text'  => $this->mNewRev->getUserText( Revision::FOR_THIS_USER ),
-                                               'rc_timestamp'  => $db->timestamp( $this->mNewRev->getTimestamp() ),
-                                               'rc_this_oldid' => $this->mNewid,
-                                               'rc_last_oldid' => $this->mOldid,
-                                               'rc_patrolled'  => 0
-                               ),
-                               __METHOD__
+                                       array(
+                                       // Add redundant user,timestamp condition so we can use the existing index
+                                                       'rc_user_text'  => $this->mNewRev->getRawUserText(),
+                                                       'rc_timestamp'  => $db->timestamp( $this->mNewRev->getTimestamp() ),
+                                                       'rc_this_oldid' => $this->mNewid,
+                                                       'rc_last_oldid' => $this->mOldid,
+                                                       'rc_patrolled'  => 0
+                                       ),
+                                       __METHOD__
                                );
                                if( $change instanceof RecentChange ) {
                                        $rcid = $change->mAttribs['rc_id'];