Add error css to errors like the other file operation pages and actions
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 15 Mar 2012 01:42:34 +0000 (01:42 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 15 Mar 2012 01:42:34 +0000 (01:42 +0000)
includes/specials/SpecialUndelete.php

index f1750b4..b0df3c9 100644 (file)
@@ -1400,7 +1400,9 @@ class SpecialUndelete extends SpecialPage {
                // Show file deletion warnings and errors
                $status = $archive->getFileStatus();
                if( $status && !$status->isGood() ) {
+                       $out->addHTML( '<span class="error">' );
                        $out->addWikiText( $status->getWikiText( 'undelete-error-short', 'undelete-error-long' ) );
+                       $out->addHTML( '</span>' );
                }
        }
 }