Commit graph

1219 commits

Author SHA1 Message Date
Reedy 57a6ec2942 Bug 42809 - Replace testExpr with a PHPUnit test
Change-Id: I338af01b50684b5849ca198eac536eacdc916ec6
2012-12-07 18:34:58 +01:00
Reedy f1e64db755 Add ExprError to autoloaded classes
Change-Id: I0f585d5396fb31eab362e5eb4c351bb194574cb7
2012-12-07 03:01:35 +00:00
Reedy 973dc03d6a Add some tests that broke when trying to fix 35866
https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&oldid=526794123#Recent_changes_to_MediaWiki

Cause was https://gerrit.wikimedia.org/r/#/c/37341/

Change-Id: Iaad077f8f59c003f4e912b695b360ef2070071a7
2012-12-07 01:33:43 +00:00
Reedy ac8ad3f82e Revert "Bug 35866 - ParserFunctions: Division by zero in Expr.php"
Seeemingly quite a lot of false positives...

This reverts commit a63cb85ae8
2012-12-07 00:59:10 +00:00
Reedy a63cb85ae8 Bug 35866 - ParserFunctions: Division by zero in Expr.php
Change-Id: Ie9b101b69096e5021a05af1f7260fbc6611319ac
2012-12-06 23:49:23 +00:00
Translation updater bot d96a17ce64 Localisation updates from http://translatewiki.net.
Change-Id: Ica4361edd63d37060eb2e7e236a81ed1285e7ef8
2012-12-02 20:43:48 +00:00
Translation updater bot 26066bfc04 Localisation updates from http://translatewiki.net.
Change-Id: I79da4bb689a6f5ab25351116cf57aca51a1ec5a5
2012-11-28 20:17:54 +00:00
Translation updater bot 464ae18eb4 Localisation updates from http://translatewiki.net.
Change-Id: Id81a93f94b6a6f7bdce0d311f3cffcb7ce596960
2012-11-27 21:07:41 +00:00
Translation updater bot 55d4b07d5b Localisation updates from http://translatewiki.net.
Change-Id: Ie1d705134d4698e7ac497d43ed7911198c2815ac
2012-11-25 20:51:32 +00:00
Translation updater bot d707238b86 Localisation updates from http://translatewiki.net.
Change-Id: I700313063e14b83fc4670df5aea380706a786174
2012-11-22 20:45:23 +00:00
Translation updater bot 71ae828026 Localisation updates from http://translatewiki.net.
Change-Id: I4cc2c43139e57a94754f7b759b0f6df25cbe86c5
2012-11-17 20:49:02 +00:00
Translation updater bot c5f24a34d8 Localisation updates from http://translatewiki.net.
Change-Id: I307e44a18f95aa6fc3c1d3344e7429f59ee9974d
2012-11-11 20:57:57 +00:00
Translation updater bot 1df4e0605d Localisation updates from http://translatewiki.net.
Change-Id: I25c8c024185b9ddcba5e83a1a34393e9899d519e
2012-11-09 10:35:59 +00:00
Gabriel Wicke e48bb4b2a9 Add test for special parameter whitespace stripping behavior
ParserFunctions strip whitespace from positional parameters, while normal
templates do not.

Change-Id: I9c736bedf103a668b324e7fd453d205d9824b9e4
2012-11-09 06:39:36 +00:00
Gabriel Wicke ff2801b0df Add a test for the preservation of tags in the #switch default value
This test is inspired by the Parsoid commit
https://gerrit.wikimedia.org/r/#/c/28623/, but applies to the PHP version too.

Change-Id: I4814b98597f2dd6a2279b8cdcc90a26fbbdecc71
2012-11-08 10:43:10 -08:00
Translation updater bot c3d5c4b31e Localisation updates from http://translatewiki.net.
Change-Id: I199320db6554e4e34cf7567bf0fd15f2d4e0536d
2012-10-22 01:39:02 +00:00
Translation updater bot cee2771658 Localisation updates from http://translatewiki.net.
Change-Id: Ia50df2f81aafc4d3ccd121ffdb89b19d9fb1c98b
2012-10-18 19:22:47 +00:00
Translation updater bot b5f7c68452 Localisation updates from http://translatewiki.net.
Change-Id: I56fcabb7439c9c1a6f638d872656a39e9ecb6525
2012-10-12 21:19:44 +00:00
Siebrand Mazeland 5dee345880 ParserFunctions extension maintenance.
* Use Message class instead of wfMsg* methods.
* Replace additional deprecated methods.
* Fixed incorrect tag in i18n file.
* Update .gitignore.

Conflicts:
	ParserFunctions.i18n.php

Change-Id: If21300c11ec628506cb56550bc91a24a5d7c45d2
2012-10-03 20:58:43 +00:00
Translation updater bot 0a12e5e3fe Localisation updates from http://translatewiki.net.
Change-Id: Iffed2ee5874e9fc248416aa7d0fedd048623e2b4
2012-10-03 20:17:29 +00:00
umherirrender d7668a3581 Use Parser::incrementExpensiveFunctionCount direct for ifexist
No need to do it self and now the limit of the ParserOptions is used.

Change-Id: Id13796d0424fb3b5501a774e1ace3ea065864e49
2012-10-02 23:47:52 +00:00
Translation updater bot 49a850f0f7 Localisation updates from http://translatewiki.net.
Change-Id: I5691bb949e74290457d117b10402a0d3003eb998
2012-10-02 13:51:43 +00:00
Translation updater bot 193e69abee Localisation updates from http://translatewiki.net.
Change-Id: I6fe46ae2c310f9965fd16c86d99eff10dca932d4
2012-09-25 19:47:06 +00:00
Translation updater bot 82a0ab9634 Localisation updates from http://translatewiki.net.
Change-Id: I69877ab64a312562fad8800c35ede1d06298b6a1
2012-09-23 19:04:09 +00:00
Translation updater bot a459b1d0c5 Localisation updates from http://translatewiki.net.
Change-Id: I4a78800e6e3b4c192cd30e6237f7b03d804e1ae2
2012-09-18 19:16:05 +00:00
Niklas Laxström 2763315952 Removed more leftovers of convert reversion
Change-Id: I891bd6f94a32d145ab8909b481347bc876043dda
2012-09-17 20:50:15 +00:00
Translation updater bot 33fa60a8fc Localisation updates from http://translatewiki.net.
Change-Id: I7a552dbe96421aad415f5adebc77518e4870b009
2012-09-15 19:52:49 +00:00
Translation updater bot 0d7f81da72 Localisation updates from http://translatewiki.net.
Change-Id: Ie86a166d693df4ed14da00625833cd9f697710ba
2012-09-14 21:10:13 +00:00
Translation updater bot e6dc8d46ea Localisation updates from http://translatewiki.net.
Change-Id: I122f3e115aa0b13aa86b499fba7df320f012d7f6
2012-09-13 20:44:46 +00:00
Reedy e91a53942a Merge "Cleanup I730624f4: Bug 40039 - Remove ConvertParser from ParserFunctions" 2012-09-11 01:24:41 +00:00
Translation updater bot 5c4083779a Localisation updates from http://translatewiki.net.
Change-Id: I979ee7b6917ef03717ca72cc961f1483c3a462b5
2012-09-10 19:32:53 +00:00
Translation updater bot 9c273d734a Localisation updates from http://translatewiki.net.
Change-Id: Iff4807176af65bfbf7ce651ceed66f981454659d
2012-09-09 19:34:08 +00:00
Translation updater bot 90b4897c26 Localisation updates from http://translatewiki.net.
Change-Id: Icdbd1130257d45817a8573189d1ff619899ffe2b
2012-09-08 19:01:06 +00:00
umherirrender 99b150fab4 Cleanup I730624f4: Bug 40039 - Remove ConvertParser from ParserFunctions
Remove unused vars and dead entries for classes and tests

Change-Id: I0920f0294043fa1cca0ca5622fb7eae4a8c61fcb
2012-09-08 19:30:30 +02:00
Reedy 7a3619ea8d Bug 40039 - Remove ConvertParser from ParserFunctions
Change-Id: I730624f455dcd8cf0375b9147efe4abee5b203bb
2012-09-06 15:44:12 +01:00
Reedy fdd7c091bd Minor documentation additions
Change-Id: I876de41b2c81d93df34ee2a8222aff6dc8176aae
2012-07-23 20:56:17 +01:00
Reedy 8d2534bc77 Add .gitignore
Change-Id: I7e80967be0af17caa2f983f9cf19a2c5ed85f8d0
2012-05-21 01:41:15 +01:00
Peter Gehres 4367239a72 Adding .gitreview
Change-Id: I96adaf0e412fe047bcb2a8ca9fec821e475bb62b
2012-03-23 10:31:59 -07:00
Mark A. Hershberger fb5864083d w/s 2012-02-06 04:37:05 +00:00
Chad Horohoe e60a8ed523 Stop using in_string(). WikiScripts and AbuseFilter are the only exts still using this silly thing. 2012-01-11 14:47:27 +00:00
Sam Reed c31468e363 * (bug 33421) ParserFunction 1.18 has incorrect italian string 2011-12-29 22:20:04 +00:00
Siebrand Mazeland 7695c55756 Rename no to nb (step 4/4): Change 'no' to 'nb' in remaining files. 2011-12-25 09:42:00 +00:00
Siebrand Mazeland aabd2bf24f Add test and output for {{#time:d F Y|1988-02-28|nl}}. This test should pass.
Would be nice if it was possible to add a test for {{#time:d F Y|1988-02-28|user}} where user language is "nl", because that does not work. Ref bug 28655 comment 10 and comment 17.
2011-12-21 21:59:38 +00:00
Sam Reed ee97278b4d Add some braces and also some documentation 2011-12-19 23:44:11 +00:00
Max Semenik 2aacab3186 ParserFunctions: made {{#time}} respect parser's timestamp, just as {{CURRENTDATE}} and friends do 2011-12-19 11:18:13 +00:00
Max Semenik d605269ce8 ParserFunctions: ditch PHP pre 5.2 compatibility 2011-12-19 10:51:39 +00:00
Sam Reed 8e61fa2f32 Flesh out documentation
Remove some more < 1.12 back compat code
2011-12-19 00:54:31 +00:00
Sam Reed 1eec35dabd Fix function name typo "date_defaulttimezone_get()" to "date_default_timezone_get()" from r105459 2011-12-19 00:51:36 +00:00
Sam Reed 0b1347bdd2 SFH_OBJECT_ARGS was added pre 1.12...
Kill ancient back compat, and code where unused
2011-12-19 00:38:10 +00:00
Alexandre Emsenhuber f4d9df85d5 * Only get the LinkCache instance when really necessary
* Do not assign a variable inside a condition check
2011-12-18 19:00:53 +00:00