Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php |
— | — | @@ -795,7 +795,7 @@ |
796 | 796 | */ |
797 | 797 | public function addToFileHistLine( $historyList, $file, &$s, &$css ) { |
798 | 798 | # Non-content pages cannot be validated. Stable version must exist. |
799 | | - if( !$this->isReviewable() || !$this->getStableRev() ) |
| 799 | + if( !$this->isReviewable() || !$this->getStableRev() || !$file->isLocal() ) |
800 | 800 | return true; |
801 | 801 | # Quality level for old versions selected all at once. |
802 | 802 | if( !$file->isOld() ) { |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -2067,9 +2067,11 @@ |
2068 | 2068 | } |
2069 | 2069 | |
2070 | 2070 | static function addToFileHistQuery( $file, &$tables, &$fields, &$conds, &$opts, &$join_conds ) { |
2071 | | - $tables[] = 'flaggedrevs'; |
2072 | | - $fields[] = 'fr_quality'; |
2073 | | - $join_conds['flaggedrevs'] = array( 'LEFT JOIN', 'oi_sha1 = fr_img_sha1 AND oi_timestamp = fr_img_timestamp' ); |
| 2071 | + if( $file->isLocal() ) { |
| 2072 | + $tables[] = 'flaggedrevs'; |
| 2073 | + $fields[] = 'fr_quality'; |
| 2074 | + $join_conds['flaggedrevs'] = array( 'LEFT JOIN', 'oi_sha1 = fr_img_sha1 AND oi_timestamp = fr_img_timestamp' ); |
| 2075 | + } |
2074 | 2076 | return true; |
2075 | 2077 | } |
2076 | 2078 | |