From 05077dc37401e8374d79798c336414dbda2bb5b2 Mon Sep 17 00:00:00 2001 From: Ruud Koot Date: Fri, 24 May 2013 16:49:50 +0200 Subject: [PATCH] RecentChange: deprecate newFromCurRow and loadFromCurRow This is ancient code related to the no-longer existing cur table, which doesn't seem to be fully correct anymore and is only called from the (deprecated) Oversight extension. Change-Id: I0b40e3fb17ec670c5c85c8ee0dd2e8b74d72e548 --- includes/RecentChange.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/RecentChange.php b/includes/RecentChange.php index b5d4a1c531..386b3935f7 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -96,10 +96,12 @@ class RecentChange { } /** + * @deprecated in 1.22 (cur table no longer exists) * @param $row * @return RecentChange */ public static function newFromCurRow( $row ) { + wfDeprecated( ___METHOD__ , '1.22' ); $rc = new RecentChange; $rc->loadFromCurRow( $row ); $rc->notificationtimestamp = false; @@ -653,9 +655,11 @@ class RecentChange { /** * Makes a pseudo-RC entry from a cur row * + * @deprected in 1.22 (cur table no longer exists) * @param $row */ public function loadFromCurRow( $row ) { + wfDeprecated( ___METHOD__ , '1.22' ); $this->mAttribs = array( 'rc_timestamp' => wfTimestamp( TS_MW, $row->rev_timestamp ), 'rc_cur_time' => $row->rev_timestamp, -- 2.20.1