Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -264,11 +264,15 @@ |
265 | 265 | } |
266 | 266 | |
267 | 267 | /** |
268 | | - * Get global revision status precedence settings |
| 268 | + * Get global revision status precedence setting |
| 269 | + * or a specific one if given configuration flags |
| 270 | + * @param int, config settings, optional |
269 | 271 | * @return int |
270 | 272 | */ |
271 | | - public static function getPrecedence() { |
| 273 | + public static function getPrecedence( $config = null ) { |
272 | 274 | global $wgFlaggedRevsPrecedence; |
| 275 | + if( is_null($config) ) |
| 276 | + $config = $wgFlaggedRevsPrecedence; |
273 | 277 | switch( $wgFlaggedRevsPrecedence ) |
274 | 278 | { |
275 | 279 | case 2: |