X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=blobdiff_plain;f=includes%2Fchanges%2FRecentChange.php;h=e18482505cbec20b5fcec483c44c88cfb99c20ae;hb=d912ae39113edf613ad47e30272d2eea68ef204d;hp=edaa963ffe98330f76893f42fee665ac1d8e0780;hpb=582419334a7576ea7ee78a785a00c9e20c9429c4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/changes/RecentChange.php b/includes/changes/RecentChange.php index edaa963ffe..e18482505c 100644 --- a/includes/changes/RecentChange.php +++ b/includes/changes/RecentChange.php @@ -90,6 +90,7 @@ class RecentChange implements Taggable { */ const SEND_FEED = false; + /** @var array */ public $mAttribs = []; public $mExtra = []; @@ -220,55 +221,6 @@ class RecentChange implements Taggable { } } - /** - * Return the list of recentchanges fields that should be selected to create - * a new recentchanges object. - * @deprecated since 1.31, use self::getQueryInfo() instead. - * @return array - */ - public static function selectFields() { - global $wgActorTableSchemaMigrationStage; - - wfDeprecated( __METHOD__, '1.31' ); - if ( $wgActorTableSchemaMigrationStage & SCHEMA_COMPAT_READ_NEW ) { - // If code is using this instead of self::getQueryInfo(), there's a - // decent chance it's going to try to directly access - // $row->rc_user or $row->rc_user_text and we can't give it - // useful values here once those aren't being used anymore. - throw new BadMethodCallException( - 'Cannot use ' . __METHOD__ - . ' when $wgActorTableSchemaMigrationStage has SCHEMA_COMPAT_READ_NEW' - ); - } - - return [ - 'rc_id', - 'rc_timestamp', - 'rc_user', - 'rc_user_text', - 'rc_actor' => 'NULL', - 'rc_namespace', - 'rc_title', - 'rc_minor', - 'rc_bot', - 'rc_new', - 'rc_cur_id', - 'rc_this_oldid', - 'rc_last_oldid', - 'rc_type', - 'rc_source', - 'rc_patrolled', - 'rc_ip', - 'rc_old_len', - 'rc_new_len', - 'rc_deleted', - 'rc_logid', - 'rc_log_type', - 'rc_log_action', - 'rc_params', - ] + CommentStore::getStore()->getFields( 'rc_comment' ); - } - /** * Return the tables, fields, and join conditions to be selected to create * a new recentchanges object.