WatchAction: Clean up redundant getFormFields() and show()
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 29 Sep 2015 01:45:34 +0000 (18:45 -0700)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 29 Sep 2015 01:46:45 +0000 (18:46 -0700)
commit27a8bad9b0b430876e713d27c38a51cb651195c2
treede951329d338ab57830a750a1a3059aeaf6f2c1a
parentfd15fa3c4e3d55a201b6b2608c1241c3fa88e2df
WatchAction: Clean up redundant getFormFields() and show()

* Make FormAction::getFormFields not abstract. In most cases this will just
  be an empty array. This is in prep for RollbackAction as well.

* Remove redundant show() in WatchAction. This used to do custom stuff,
  but after 77cdf1919 it does exactly the same as the parent FormAction::show.

* Don't add 'redirectparams' hidden field if there were no custom query parameters
  (e.g. plain index.php?title=..&action=..)

Change-Id: Ia7f9bb0367c49a23179e9fefa9f529fa8aef8f52
includes/actions/FormAction.php
includes/actions/PurgeAction.php
includes/actions/WatchAction.php