Merge "Fix double braceSubstitution of some preview messages"
[lhc/web/wiklou.git] / includes / parser / Parser.php
index 489451a..5f211b1 100644 (file)
@@ -3086,7 +3086,7 @@ class Parser {
         * @param $max int|null Maximum allowed, when an explicit limit has been
         *       exceeded, provide the values (optional)
         */
-       function limitationWarn( $limitationType, $current = null, $max = null) {
+       function limitationWarn( $limitationType, $current = '', $max = '' ) {
                # does no harm if $current and $max are present but are unnecessary for the message
                $warning = wfMessage( "$limitationType-warning" )->numParams( $current, $max )
                        ->inContentLanguage()->escaped();