EditPage: Rename and make getSubmitButtonLabel() protected
authorKunal Mehta <legoktm@member.fsf.org>
Tue, 12 Sep 2017 18:17:20 +0000 (11:17 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Tue, 12 Sep 2017 18:19:57 +0000 (11:19 -0700)
commit763de4b3205f4e1fb81041859e76c6228ff0229f
treec157887079fbbf4c53bb6e3316810ca64a409afc
parentea75da8eb84f38cd04cccabf7e1e408b40d56a8c
EditPage: Rename and make getSubmitButtonLabel() protected

Calling this method "SaveButton" is misleading since this function
controls whether the button is called "save" or "publish". The
corresponding config option (EditSubmitButtonLabelPublish) already uses
the terminology "SubmitButton" so re-use it here.

And make it protected so subclasses (e.g. TwoColConflict) can use it
instead of having to re-implement it.

Change-Id: Iae811f0487f661bb501a9893037c352efa4e1e73
includes/EditPage.php