https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114073

Revision: 114073
Author:   siebrand
Date:     2012-03-17 21:19:31 +0000 (Sat, 17 Mar 2012)
Log Message:
-----------
Follow-up r113939: Add divs to addWikiText().

Modified Paths:
--------------
    trunk/phase3/includes/FileDeleteForm.php
    trunk/phase3/includes/specials/SpecialUndelete.php

Modified: trunk/phase3/includes/FileDeleteForm.php
===================================================================
--- trunk/phase3/includes/FileDeleteForm.php    2012-03-17 21:13:10 UTC (rev 
114072)
+++ trunk/phase3/includes/FileDeleteForm.php    2012-03-17 21:19:31 UTC (rev 
114073)
@@ -89,9 +89,7 @@
 
                        if( !$status->isGood() ) {
                                $wgOut->addHTML( '<h2>' . 
$this->prepareMessage( 'filedeleteerror-short' ) . "</h2>\n" );
-                               $wgOut->addHTML( '<div class="error">' );
-                               $wgOut->addWikiText( $status->getWikiText( 
'filedeleteerror-short', 'filedeleteerror-long' ) );
-                               $wgOut->addHTML( '</div>' );
+                               $wgOut->addWikiText( '<div class="error">' . 
$status->getWikiText( 'filedeleteerror-short', 'filedeleteerror-long' ) . 
'</div>' );
                        }
                        if( $status->ok ) {
                                $wgOut->setPageTitle( wfMessage( 
'actioncomplete' ) );

Modified: trunk/phase3/includes/specials/SpecialUndelete.php
===================================================================
--- trunk/phase3/includes/specials/SpecialUndelete.php  2012-03-17 21:13:10 UTC 
(rev 114072)
+++ trunk/phase3/includes/specials/SpecialUndelete.php  2012-03-17 21:19:31 UTC 
(rev 114073)
@@ -1399,9 +1399,7 @@
                // Show file deletion warnings and errors
                $status = $archive->getFileStatus();
                if( $status && !$status->isGood() ) {
-                       $out->addHTML( '<div class="error">' );
-                       $out->addWikiText( $status->getWikiText( 
'undelete-error-short', 'undelete-error-long' ) );
-                       $out->addHTML( '</div>' );
+                       $out->addWikiText( '<div class="error">' . 
$status->getWikiText( 'undelete-error-short', 'undelete-error-long' ) . 
'</div>' );
                }
        }
 }


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to