editintro given a css class of its own
authorPiRSquared17 <gerritpatchuploader@gmail.com>
Fri, 23 May 2014 23:45:41 +0000 (23:45 +0000)
committer[[mw:User:PiRSquared17]] <gerritpatchuploader@gmail.com>
Fri, 23 May 2014 23:45:41 +0000 (23:45 +0000)
The template added using the editintro url parameter is
contained within a div tag with a unique class 'mw-editintro'

Bug: 30959
Change-Id: I9afa41a01a2318fba27df04054871cd593be7e92

includes/EditPage.php

index ca11f16..c3f02da 100644 (file)
@@ -2302,7 +2302,7 @@ class EditPage {
                        if ( $title instanceof Title && $title->exists() && $title->userCan( 'read' ) ) {
                                global $wgOut;
                                // Added using template syntax, to take <noinclude>'s into account.
-                               $wgOut->addWikiTextTitleTidy( '{{:' . $title->getFullText() . '}}', $this->mTitle );
+                               $wgOut->addWikiTextTitleTidy( '<div class="mw-editintro">{{:' . $title->getFullText() . '}}</div>', $this->mTitle );
                                return true;
                        }
                }