Some misc cleanup to ProtectionForm
authorAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Sun, 6 Jul 2014 18:53:18 +0000 (20:53 +0200)
committerAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Sun, 6 Jul 2014 18:53:18 +0000 (20:53 +0200)
commita2713be323ce9c2cea7107c6760f23e32a61f894
tree51911d7d4d1964465b6caef11b9102e249c06175
parent9713929d364223efb2c23cfd3e6c481571e6a477
Some misc cleanup to ProtectionForm

- Set variables near to where they are used in buildForm()
  and put variables that only need to be set once out of loops
- Move the definition of 'wgCascadeableLevels' javascript variable
  near the inclusion of mediawiki.legacy.protect module, so that
  this doesn't need to be set as a side effect of buildCleanupScript()

Change-Id: Ifb54723e7609f6fc5a8939e4fada5c2e664a22bd
includes/ProtectionForm.php