r49523 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49522‎ | r49523 | r49524 >
Date:20:18, 15 April 2009
Author:aaron
Status:ok
Tags:
Comment:
Made getPrecedence() more robust
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php
@@ -264,11 +264,15 @@
265265 }
266266
267267 /**
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
269271 * @return int
270272 */
271 - public static function getPrecedence() {
 273+ public static function getPrecedence( $config = null ) {
272274 global $wgFlaggedRevsPrecedence;
 275+ if( is_null($config) )
 276+ $config = $wgFlaggedRevsPrecedence;
273277 switch( $wgFlaggedRevsPrecedence )
274278 {
275279 case 2:

Follow-up revisions

RevisionCommit summaryAuthorDate
r49529Make r49523 actually workaaron21:10, 15 April 2009

Status & tagging log