mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-15 11:59:54 +00:00
0fb7807e9a
In trying to fix bug 35866, I32c9eca6 changed the behavior of 'mod' to no longer cast its arguments to integers, which conventiently also solved bug 6068. However, this also broke many existing uses that depended on that casting. This change reverts 'mod' to its old behavior while still solving bug 35866, and at the same time adds a new 'fmod' operator with the new behavior to keep bug 6068 fixed as well. Change-Id: I6114c6e769119e6ced61b3b55b6f70b03b5b1ebe |
||
---|---|---|
tests | ||
.gitignore | ||
.gitreview | ||
COPYING | ||
Expr.php | ||
funcsParserTests.txt | ||
ParserFunctions.i18n.magic.php | ||
ParserFunctions.i18n.php | ||
ParserFunctions.php | ||
ParserFunctions_body.php | ||
README | ||
stringFunctionTests.txt |
ParserFunctions v1.4.0 1. Licensing 2. How to install 3. Tests 1. Licensing Licensed under GNU GPL. See COPYING for more license information. 2. How to install a. Download this tarbell and extract the contents to $IP/extensions/ParserFunctions/ where $IP is your root wiki install b. Add 'require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php");' to the end of your LocalSettings (without the single quotes) c. Enjoy 3. Tests ParserFunctions ships with two tests - Parser tests. These get added to the main parser tests, see there for docs - Expression tests. These are designed to test the math-related functions See testExpr.php