Commit graph

6 commits

Author SHA1 Message Date
Kunal Mehta
6e9b4f0e9c Convert all array() syntax to []
Per wikitech-l consensus:
 https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html

Notes:
* Disabled CallTimePassByReference due to false positives (T127163)

Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
2016-02-17 01:33:00 -08:00
Siebrand Mazeland
950910dc99 Fix PHPCS warnings in includes/htmlform/
Change-Id: Ifbf050c92a84d6af59709632965f48f3d567c0da
2015-09-28 13:35:28 +02:00
jenkins-bot
bec1064f31 Merge "HTMLTitleTextField: Support 'relative' config option" 2015-07-27 02:12:47 +00:00
Bartosz Dziewoński
2713039474 HTMLTitleTextField: Support 'relative' config option
Uses:
* SpecialExport: I2b3524e61efc618aa2b7484134bba562d5f9011c
* SpecialRandomInCategory: I4c0b11e2ae0cfa906bbde77fc89901cf88a9a5bd

Change-Id: Ia7c773fee34fd8809c8683c62d700f5373ceb45c
2015-07-26 23:46:05 +02:00
Kunal Mehta
ba7acbe791 Allow HTMLTitleTextField to work on GET forms
Just skip validation if it is a GET form and the current input is an
empty string. Callers will need to check that it is not the empty string
though.

Also make sure HTMLForm::mMethod is always lowercase.

Change-Id: I605f32048fe97eebd7e04b6ffd799759aeb7f31e
2015-07-24 18:19:36 -07:00
Kunal Mehta
d7d663bc54 HTMLForm: Add 'title' type
HTMLTitleTextField will automatically validate title input, can
optionally ensure the title is in a specific namespace, is creatable, or
already exists.

The field currently doesn't support GET requests since validation on
empty strings fails.

Bug: T104420
Change-Id: I45718462570d0a523a148c3830b1116b634df050
2015-07-09 15:44:09 +00:00