Parser: Disable commafy for magic variables for month and day
authorSanthosh Thottingal <santhosh.thottingal@gmail.com>
Fri, 13 Oct 2017 11:43:22 +0000 (17:13 +0530)
committerNikerabbit <niklas.laxstrom@gmail.com>
Mon, 16 Oct 2017 08:35:26 +0000 (08:35 +0000)
commitf07b32a7dd48627bc49ac25388a111987ae58bcc
tree99bcc147bb586f64268abf47af54b5499b97b47d
parent439b819faf168c67b7381083c244a5d5610f85bb
Parser: Disable commafy for magic variables for month and day

In Parser#getVariableValue for the following magic variables
Language#formatNum was called without commafy parameter:

currentmonth, currentmonth1, currentday, currentday2, localmonth,
localmonth1, localday, localday2

The default value for formatNum nocommafy is false, meaning formatNum
will do commafication. For the above context, commafy is not needed
since the passed values are often month values like 02, 03 etc.
Commafy is noop on this values.

Explicitly pass false value for formatNum's nocommafy argument.
Language#formatNum method documentation for nocommafy also recommends
setting it true in case of dates.

Change-Id: I3233d5458af8cef583e5d1d599d9408542ba08c9
includes/parser/Parser.php