Move copyright warning to directly above buttons.
authorRob Moen <rmoen@wikimedia.org>
Wed, 29 Aug 2012 01:50:15 +0000 (18:50 -0700)
committerRob Moen <rmoen@wikimedia.org>
Wed, 29 Aug 2012 02:06:19 +0000 (19:06 -0700)
Please see:
http://www.mediawiki.org/wiki/Micro_Design_Improvements

Change-Id: Ida02149880aae00f790cb414ae3d632aac351651

includes/EditPage.php

index 0389168..48ac32b 100644 (file)
@@ -1886,10 +1886,6 @@ class EditPage {
 
                $wgOut->addHTML( $this->editFormTextAfterContent );
 
-               $wgOut->addWikiText( $this->getCopywarn() );
-
-               $wgOut->addHTML( $this->editFormTextAfterWarn );
-
                $this->showStandardInputs();
 
                $this->showFormAfterText();
@@ -2478,6 +2474,11 @@ HTML
                $checkboxes = $this->getCheckboxes( $tabindex,
                        array( 'minor' => $this->minoredit, 'watch' => $this->watchthis ) );
                $wgOut->addHTML( "<div class='editCheckboxes'>" . implode( $checkboxes, "\n" ) . "</div>\n" );
+
+               // Show copyright warning.
+               $wgOut->addWikiText( $this->getCopywarn() );
+               $wgOut->addHTML( $this->editFormTextAfterWarn );
+
                $wgOut->addHTML( "<div class='editButtons'>\n" );
                $wgOut->addHTML( implode( $this->getEditButtons( $tabindex ), "\n" ) . "\n" );