* r113886: use <div> instead of span to wrap element that has p tags.
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 15 Mar 2012 17:50:55 +0000 (17:50 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 15 Mar 2012 17:50:55 +0000 (17:50 +0000)
* Also fixed an older instance of the same problem.

includes/FileDeleteForm.php
includes/specials/SpecialUndelete.php

index 089acd0..a1b4900 100644 (file)
@@ -89,9 +89,9 @@ class FileDeleteForm {
 
                        if( !$status->isGood() ) {
                                $wgOut->addHTML( '<h2>' . $this->prepareMessage( 'filedeleteerror-short' ) . "</h2>\n" );
-                               $wgOut->addHTML( '<span class="error">' );
+                               $wgOut->addHTML( '<div class="error">' );
                                $wgOut->addWikiText( $status->getWikiText( 'filedeleteerror-short', 'filedeleteerror-long' ) );
-                               $wgOut->addHTML( '</span>' );
+                               $wgOut->addHTML( '</div>' );
                        }
                        if( $status->ok ) {
                                $wgOut->setPageTitle( wfMessage( 'actioncomplete' ) );
index 34be6b0..af2fb1d 100644 (file)
@@ -1399,9 +1399,9 @@ class SpecialUndelete extends SpecialPage {
                // Show file deletion warnings and errors
                $status = $archive->getFileStatus();
                if( $status && !$status->isGood() ) {
-                       $out->addHTML( '<span class="error">' );
+                       $out->addHTML( '<div class="error">' );
                        $out->addWikiText( $status->getWikiText( 'undelete-error-short', 'undelete-error-long' ) );
-                       $out->addHTML( '</span>' );
+                       $out->addHTML( '</div>' );
                }
        }
 }