EditPage: Style anonymous editor warning as a warningbox for consistency
authorjdlrobson <jdlrobson@gmail.com>
Fri, 19 Feb 2016 00:28:36 +0000 (16:28 -0800)
committerJforrester <jforrester@wikimedia.org>
Fri, 19 Feb 2016 00:38:49 +0000 (00:38 +0000)
Most projects override this anyway, but for default installs, let's
be consistent with other warning messages so it's clearer what is
going on.

Bug: T127403
Change-Id: I22c51a46a249247abccda709d74356e8e31a19a8

includes/EditPage.php

index 82fcdcf..b5d0a7b 100644 (file)
@@ -2827,7 +2827,7 @@ class EditPage {
                } elseif ( $wgUser->isAnon() ) {
                        if ( $this->formtype != 'preview' ) {
                                $wgOut->wrapWikiMsg(
-                                       "<div id='mw-anon-edit-warning'>\n$1\n</div>",
+                                       "<div id='mw-anon-edit-warning' class='warningbox'>\n$1\n</div>",
                                        [ 'anoneditwarning',
                                                // Log-in link
                                                '{{fullurl:Special:UserLogin|returnto={{FULLPAGENAMEE}}}}',