Commit Graph

33 Commits

Author SHA1 Message Date
addshore 56a2a82c0f Remove use of deprecated wfRunHooks
Change-Id: I4035e65662a7e8c82d68f8559a6634a81eea674c
2015-08-06 18:53:50 +01:00
Reedy 63831294a2 Minor refactoring/cleanup and some documentation
Change-Id: Icd0a3a4f3142bcaaeefd64d8c1f5e45c84a182ed
2015-06-28 02:10:28 +01:00
jenkins-bot 4e226dffdb Merge "Show a valid error when ContactPage is configured incorrectly" 2015-05-10 16:51:44 +00:00
glaisher fc3fa2026d Show a valid error when ContactPage is configured incorrectly
Bug: T75697
Change-Id: Ia3b0183c268354a46ea1a03eacffc58bd049a332
2015-05-10 21:47:42 +05:00
Bryan Davis ff7794bf26 Allow loading of ResourceLoader modules
Add a new 'RLModules' and 'RLStyleModules' configuration options that
allow a contact page to specify list of ResourceLoader modules and/or
CSS only modules to add to the output page that is used to display the
form.

Bug: T95789
Change-Id: Ic10c4b3c6a402c5cebc34f675672552b7d9ebb67
2015-04-30 14:27:02 -06:00
Bryan Davis c6913cee66 Allow selection of HTMLForm display format
Add a 'DisplayFormat' configuration value that tells HTMLForm which output
styling should be used. This can be used for example to change the form
to the 'vform' style which uses the Mediawiki.ui css styles.

Change-Id: I04d2959b80a44e31f1e04324b26e6dff5ea5b4a6
2015-04-30 09:18:16 -06:00
Brad Jorsch 11f4950bd4 Base more stuff on the form type
Specifically:
* Form ID
* i18n message for the wrapper legend
* i18n message for the "send" button
* i18n message for the "sent" page title
* i18n message for the "sent" page text

Also, pass $formData to the ContactForm hook in case other fields should
be used to override the subject or something like that.

Change-Id: I6e9770835060f911d6eb6d886f8a267a068991d5
2015-04-30 14:49:01 +00:00
Alex Monk 0d15b02444 Add custom label text setting to be used for email output
label-raw is likely to contain HTML which we don't want

Bug: T96087
Change-Id: Ia3ee1e9f56bec9129afb13e2af845717744a5c43
2015-04-15 00:29:11 +00:00
jenkins-bot 4d676b13cd Merge "Fix undefined index warning" 2015-03-31 14:58:01 +00:00
Alex Monk f1119537ea Fix undefined index warning
Bug: T67063
Change-Id: I607229533f7c282e50a3383fc594e4d95ce5a586
2015-03-31 12:12:20 +01:00
Kunal Mehta eb3a743cba Add extension.json
Bug: T87901
Change-Id: Iba8dccbf5ec5b303610c89bb82ff13d86dc5883a
2015-03-02 18:51:39 -08:00
jenkins-bot a2482d84dc Merge "Fix Undefined index: IncludeIP" 2014-12-28 19:51:21 +00:00
Reedy 2bd57883ed Fix Undefined index: IncludeIP
Bug: 73465
Change-Id: I9cadbf32669fde3165bb443ae8afad295d259479
2014-11-15 12:56:07 +00:00
Kunal Mehta ae75785aaa Use MailAddress::newFromUser()
Change-Id: I1d650e25087f83c8ea3d141c9d1d8e24731c2f00
2014-11-15 12:54:31 +00:00
Cook879 daa666dec4 Readd CAPTCHA (ConfirmEdit extension) support
Bug: 66811
Change-Id: I46041c24fedc6643fc56f9f53cd59ea5803ebd85
2014-08-28 20:18:14 +03:00
Siebrand Mazeland 800bed9ade Move key usermailererror here from core
This extension was using the key and it was used nowhere else. So moved it
here and prefixed it with the extension name.

Change-Id: Ia2d15b56cbf0dafd9d6e53f0e1cdd71cde331347
2014-04-10 10:17:00 +02:00
Reedy 96450dd8c3 Allow inclusion of additional fields
Change-Id: I10ac5a9b91ae35af5c8277d06823af869b3226fc
2014-03-20 14:03:29 +00:00
Brad Jorsch 9ac7d3dff4 Fix message usage
Ib49600e accidentally removed the 's' from the end of the message name.
Restore it.

Change-Id: I5232adc5c0580a75741042a7f102e1b5b2e64c93
2014-02-28 11:44:15 -05:00
Reedy 9391a64196 Remove "required" messages. HTMLForm takes care of that with validation.
Change-Id: Ib49600ea251f8d4b28d894de7175b6027590ba8c
2014-02-27 21:42:47 +00:00
Reedy 969fa8363e Move Subject to be third field on form
Change-Id: I1fb9c33be471d7739fdbb29d9b212807faa8060a
2014-02-19 20:28:44 +00:00
Reedy a92f78ebcd Rewrite ContactPage to use HTMLForm
Change-Id: I79eeb244a4db2c4ae0ed7c8332881c563575ac4b
2014-02-19 20:25:39 +00:00
Reedy 4d76ff0e04 Use real name if set, else use username
Push suffix to lowercase

Explicitly define member variables

Change-Id: Ia6d8c6a2b2199953d99950af868ac70b87bd5502
2014-01-29 21:13:38 +00:00
Reedy d8f44028f5 Fix public vars to protected, add accessors
Change-Id: Id2264318cf4a69763c63ca50d635e26f321c7a4a
2014-01-29 20:08:58 +00:00
Reedy 043453262f Swap numerous " -> '
Change-Id: Ia91978b410cc991ad2fb7100687e8ba7df8ff174
2014-01-29 06:46:08 +00:00
Reedy 58d02126ea Remove numerous debug statements
Change-Id: Iddd33d3fa502c92a62f88b6690ed6bfc88603234
2014-01-29 06:04:13 +00:00
Reedy d6ca2ec79f Code cleanup and simplification
Allow for title to be changed using message

Change-Id: If0b780b528c18654fb678c0c85f394df2f2c7e82
2014-01-29 05:56:14 +00:00
Reedy a4063914db Handle $wgEnableEmail = false better
Change-Id: Ieedb2d6ccaf3d004d54262a8fd635bf32d55c862
2014-01-29 03:31:19 +00:00
Reedy ee34a515a1 Cleanup some code
Change-Id: I38a6c78221ab32db4185af483f5d35c0d57706fa
2014-01-29 02:47:47 +00:00
Siebrand Mazeland 2d2a9a4bf3 Replace deprecated use of WikiError class
Change-Id: I150dc8fcdcc9161481b9ee36f89e24631d5ee49b
2013-12-27 23:46:52 +01:00
Siebrand Mazeland 4b93823fa8 Maintenance for ContactPage extension.
* Replace deprecated methods.
* Deglobalisation.
* Small documentation updates.
* Unescaped output issue addressed.

Change-Id: I344e43b13400996e427517e01fb153bc3c8b01b9
2012-08-30 14:43:17 +02:00
Aaron Schulz 90ccdabd3d Reverted r107413: not clear if this improved anything 2012-01-20 00:35:25 +00:00
Tim Weyer 52e7576bc2 r106556 reverts:
- renaming DisableAccount_body.php to SpecialDisableAccount.php
- renaming ContactPage_body.php to SpecialContact.php

Follow-up r106511:
- changing class from SpecialBatchUserRights to BatchUserRights
2011-12-27 20:25:18 +00:00
Tim Weyer b7bf1de0f1 Replacing by in a few of most used extensions and renaming Special....php to ..._body.php 2011-12-18 10:27:44 +00:00