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
This commit is contained in:
parent
b65669ff7a
commit
05077dc374
1 changed files with 4 additions and 0 deletions
|
|
@ -96,10 +96,12 @@ class RecentChange {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated in 1.22 (cur table no longer exists)
|
||||||
* @param $row
|
* @param $row
|
||||||
* @return RecentChange
|
* @return RecentChange
|
||||||
*/
|
*/
|
||||||
public static function newFromCurRow( $row ) {
|
public static function newFromCurRow( $row ) {
|
||||||
|
wfDeprecated( ___METHOD__ , '1.22' );
|
||||||
$rc = new RecentChange;
|
$rc = new RecentChange;
|
||||||
$rc->loadFromCurRow( $row );
|
$rc->loadFromCurRow( $row );
|
||||||
$rc->notificationtimestamp = false;
|
$rc->notificationtimestamp = false;
|
||||||
|
|
@ -653,9 +655,11 @@ class RecentChange {
|
||||||
/**
|
/**
|
||||||
* Makes a pseudo-RC entry from a cur row
|
* Makes a pseudo-RC entry from a cur row
|
||||||
*
|
*
|
||||||
|
* @deprected in 1.22 (cur table no longer exists)
|
||||||
* @param $row
|
* @param $row
|
||||||
*/
|
*/
|
||||||
public function loadFromCurRow( $row ) {
|
public function loadFromCurRow( $row ) {
|
||||||
|
wfDeprecated( ___METHOD__ , '1.22' );
|
||||||
$this->mAttribs = array(
|
$this->mAttribs = array(
|
||||||
'rc_timestamp' => wfTimestamp( TS_MW, $row->rev_timestamp ),
|
'rc_timestamp' => wfTimestamp( TS_MW, $row->rev_timestamp ),
|
||||||
'rc_cur_time' => $row->rev_timestamp,
|
'rc_cur_time' => $row->rev_timestamp,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue