r41635 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41634‎ | r41635 | r41636 >
Date:08:44, 4 October 2008
Author:ialex
Status:old
Tags:
Comment:
Per siebrand: fix E_STRICT
Modified paths:
  • /trunk/phase3/includes/Validate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Validate.php
@@ -14,7 +14,7 @@
1515 * @param int $max The upper limit
1616 * @return int
1717 */
18 - function int( &$val, $min=0, $max=0x7fffffff ) {
 18+ public static function int( &$val, $min=0, $max=0x7fffffff ) {
1919 $val = intval($val);
2020 $val = min($val, $max);
2121 $val = max($val, $min);

Status & tagging log