summaryrefslogtreecommitdiff
path: root/extensions/ParserFunctions/Expr.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2014-12-27 15:41:37 +0100
committerPierre Schmitz <pierre@archlinux.de>2014-12-31 11:43:28 +0100
commitc1f9b1f7b1b77776192048005dcc66dcf3df2bfb (patch)
tree2b38796e738dd74cb42ecd9bfd151803108386bc /extensions/ParserFunctions/Expr.php
parentb88ab0086858470dd1f644e64cb4e4f62bb2be9b (diff)
Update to MediaWiki 1.24.1
Diffstat (limited to 'extensions/ParserFunctions/Expr.php')
-rw-r--r--extensions/ParserFunctions/Expr.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/extensions/ParserFunctions/Expr.php b/extensions/ParserFunctions/Expr.php
index f40158e8..70d9b8d4 100644
--- a/extensions/ParserFunctions/Expr.php
+++ b/extensions/ParserFunctions/Expr.php
@@ -60,15 +60,14 @@ class ExprError extends MWException {
// pfunc_expr_unexpected_closing_bracket, pfunc_expr_unrecognised_punctuation,
// pfunc_expr_unclosed_bracket, pfunc_expr_division_by_zero, pfunc_expr_invalid_argument,
// pfunc_expr_invalid_argument_ln, pfunc_expr_unknown_error, pfunc_expr_not_a_number
- $msg = wfMessage( "pfunc_expr_$msg", $parameter )->inContentLanguage()->escaped();
- $this->message = '<strong class="error">' . $msg . '</strong>';
+ $this->message = wfMessage( "pfunc_expr_$msg", $parameter )->inContentLanguage()->text();
}
}
class ExprParser {
- var $maxStackSize = 100;
+ public $maxStackSize = 100;
- var $precedence = array(
+ public $precedence = array(
EXPR_NEGATIVE => 10,
EXPR_POSITIVE => 10,
EXPR_EXPONENT => 10,
@@ -107,7 +106,7 @@ class ExprParser {
EXPR_CLOSE => -1,
);
- var $names = array(
+ public $names = array(
EXPR_NEGATIVE => '-',
EXPR_POSITIVE => '+',
EXPR_NOT => 'not',
@@ -144,7 +143,7 @@ class ExprParser {
EXPR_SQRT => 'sqrt',
);
- var $words = array(
+ public $words = array(
'mod' => EXPR_MOD,
'fmod' => EXPR_FMOD,
'and' => EXPR_AND,