Rename EditButtonPublishNotSave to EditSubmitButtonLabelPublish
authorJames D. Forrester <jforrester@wikimedia.org>
Mon, 29 Aug 2016 17:44:44 +0000 (10:44 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Mon, 29 Aug 2016 17:55:11 +0000 (10:55 -0700)
Per legoktm.

Change-Id: I4fbe54876095378a476399bf5e336c8df3e91e14

RELEASE-NOTES-1.28
includes/DefaultSettings.php
includes/EditPage.php

index d31943d..0b7e68b 100644 (file)
@@ -26,9 +26,9 @@ production.
   https://www.mediawiki.org/beacon with basic information about the local
   MediaWiki installation. This data includes, for example, the type of system,
   PHP version, and chosen database backend. This behavior is off by default.
-* When $wgEditButtonPublishNotSave is true, MediaWiki will label the button to
-  store-to-database-and-show-to-others as "Publish page"/"Publish changes"; if
-  false, the default, they will be "Save page"/"Save changes".
+* When $EditSubmitButtonLabelPublish is true, MediaWiki will label the button
+  to store-to-database-and-show-to-others as "Publish page"/"Publish changes";
+  if false, the default, they will be "Save page"/"Save changes".
 
 === New features in 1.28 ===
 * User::isBot() method for checking if an account is a bot role account.
index 828c8e7..fa6df8d 100644 (file)
@@ -3200,7 +3200,7 @@ $wgUseMediaWikiUIEverywhere = false;
  *
  * @since 1.28
  */
-$wgEditButtonPublishNotSave = false;
+$wgEditSubmitButtonLabelPublish = false;
 
 /**
  * Permit other namespaces in addition to the w3.org default.
index f954529..d0d41ac 100644 (file)
@@ -4067,7 +4067,9 @@ HTML
        public function getEditButtons( &$tabindex ) {
                $buttons = [];
 
-               $labelAsPublish = $this->mArticle->getContext()->getConfig()->get( 'EditButtonPublishNotSave' );
+               $labelAsPublish =
+                       $this->mArticle->getContext()->getConfig()->get( 'EditSubmitButtonLabelPublish' );
+
                // Can't use $this->isNew as that's also true if we're adding a new section to an extant page
                if ( $labelAsPublish ) {
                        $buttonLabelKey = !$this->mTitle->exists() ? 'publishpage' : 'publishchanges';