X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22upgrade%22%2C%22reinstall=non%22%29%20.%20%22?a=blobdiff_plain;f=includes%2FStorage%2FRevisionStore.php;h=13aedbab7496dd629639fda05de3d4594251c4e1;hb=bb8c060128a79532e1b6885fb3ebd6174d3f4d4d;hp=584142bfc1a9bf501513adf15c0b7057d4925f8b;hpb=cc1191e5bdd5b4878ee29fc0b103e55420011e92;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Storage/RevisionStore.php b/includes/Storage/RevisionStore.php index 584142bfc1..13aedbab74 100644 --- a/includes/Storage/RevisionStore.php +++ b/includes/Storage/RevisionStore.php @@ -636,7 +636,7 @@ class RevisionStore */ public function getRcIdIfUnpatrolled( RevisionRecord $rev ) { $rc = $this->getRecentChange( $rev ); - if ( $rc && $rc->getAttribute( 'rc_patrolled' ) == 0 ) { + if ( $rc && $rc->getAttribute( 'rc_patrolled' ) == RecentChange::PRC_UNPATROLLED ) { return $rc->getAttribute( 'rc_id' ); } else { return 0; @@ -724,11 +724,6 @@ class RevisionStore 'ar_content_model' => 'rev_content_model', ]; - if ( empty( $archiveRow->ar_text_id ) ) { - $fieldMap['ar_text'] = 'old_text'; - $fieldMap['ar_flags'] = 'old_flags'; - } - $revRow = new stdClass(); foreach ( $fieldMap as $arKey => $revKey ) { if ( property_exists( $archiveRow, $arKey ) ) { @@ -1704,7 +1699,6 @@ class RevisionStore 'ar_namespace', 'ar_title', 'ar_rev_id', - 'ar_text', 'ar_text_id', 'ar_timestamp', 'ar_minor_edit',