Index: trunk/extensions/FlaggedRevs/maintenance/updateTracking.inc |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | } |
44 | 44 | $time = $sha1 = $file = null; |
45 | 45 | # Check for file version to see if it's stored the old way... |
46 | | - if ( !$row->fr_img_name && $row->page_namespace == NS_IMAGE ) { |
| 46 | + if ( !$row->fr_img_name && $row->page_namespace == NS_FILE ) { |
47 | 47 | $irow = $db->selectRow( 'flaggedimages', |
48 | 48 | array( 'fi_img_timestamp', 'fi_img_sha1' ), |
49 | 49 | array( 'fi_rev_id' => $row->fr_rev_id, |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | $file = $crow ? $row->page_title : null; |
64 | 64 | } |
65 | 65 | # Leave it alone if already set |
66 | | - } elseif ( $row->fr_img_name && $row->page_namespace == NS_IMAGE ) { |
| 66 | + } elseif ( $row->fr_img_name && $row->page_namespace == NS_FILE ) { |
67 | 67 | $time = $row->fr_img_timestamp; |
68 | 68 | $sha1 = $row->fr_img_sha1; |
69 | 69 | $file = $row->fr_img_name; |
Index: trunk/extensions/FlaggedRevs/dataclasses/FRParserCacheStable.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | /** |
20 | 20 | * Like ParserCache::getParserOutputKey() with stable-pcache instead of pcache |
21 | 21 | * @param $article Article |
22 | | - * @param $hash |
| 22 | + * @param $hash string |
23 | 23 | * @return mixed|string |
24 | 24 | */ |
25 | 25 | protected function getParserOutputKey( $article, $hash ) { |