Add error css to errors like the other file operation pages and actions
[lhc/web/wiklou.git] / 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>' );
                }
        }
 }