Index: trunk/extensions/FlaggedRevs/dataclasses/FlaggedRevision.php |
— | — | @@ -794,6 +794,13 @@ |
795 | 795 | return ( $deleted || $updated ); |
796 | 796 | } |
797 | 797 | |
| 798 | + /* |
| 799 | + * Fetch pending template changes for this reviewed page |
| 800 | + * version against a list of current versions of templates. |
| 801 | + * See findPendingTemplateChanges() for details. |
| 802 | + * |
| 803 | + * @return array of (title, rev ID in reviewed version, has stable rev) tuples |
| 804 | + */ |
798 | 805 | public function findTemplateChanges( array $newTemplates ) { |
799 | 806 | if ( FlaggedRevs::inclusionSetting() == FR_INCLUDES_CURRENT ) { |
800 | 807 | return array(); // short-circuit |
— | — | @@ -822,6 +829,14 @@ |
823 | 830 | return $tmpChanges; |
824 | 831 | } |
825 | 832 | |
| 833 | + /* |
| 834 | + * Fetch pending file changes for this reviewed page |
| 835 | + * version against a list of current versions of files. |
| 836 | + * See findPendingFileChanges() for details. |
| 837 | + * |
| 838 | + * @param string $noForeign Using 'noForeign' skips foreign file updates (bug 15748) |
| 839 | + * @return array of (title, MW file timestamp in reviewed version, has stable rev) tuples |
| 840 | + */ |
826 | 841 | public function findFileChanges( array $newFiles, $noForeign = false ) { |
827 | 842 | if ( FlaggedRevs::inclusionSetting() == FR_INCLUDES_CURRENT ) { |
828 | 843 | return array(); // short-circuit |
— | — | @@ -846,7 +861,7 @@ |
847 | 862 | } |
848 | 863 | return $fileChanges; |
849 | 864 | } |
850 | | - |
| 865 | + |
851 | 866 | /** |
852 | 867 | * Get flags for a revision |
853 | 868 | * @param Title $title |