* (bug 21047) Wrap "cannotdelete" message into a div with the generic 'error' class...
authorRaimond Spekking <raymond@users.mediawiki.org>
Mon, 19 Oct 2009 16:43:31 +0000 (16:43 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Mon, 19 Oct 2009 16:43:31 +0000 (16:43 +0000)
Based on a patch by Platonides

RELEASE-NOTES
includes/Article.php

index 9acf54c..05e33c8 100644 (file)
@@ -252,7 +252,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Rewrote Special:Upload to allow easier extension. 
 * Upload errors that can be solved by changing the filename now do not require
   reuploading.
-
+* (bug 21047) Wrap "cannotdelete" message into a div with the generic 'error' 
+  class and a specific 'mw-error-cannotdelete' class
 
 === Bug fixes in 1.16 ===
 
index 6de0641..7d1faab 100644 (file)
@@ -2557,7 +2557,9 @@ class Article {
                $conds = $this->mTitle->pageCond();
                $latest = $dbw->selectField( 'page', 'page_latest', $conds, __METHOD__ );
                if( $latest === false ) {
-                       $wgOut->showFatalError( wfMsgExt( 'cannotdelete', array( 'parse' ) ) );
+                       $wgOut->showFatalError(
+                               Html::rawElement( 'div', array( 'class' => 'error mw-error-cannotdelete' ), wfMsgExt( 'cannotdelete', array( 'parse' ) ) )
+                       );
                        $wgOut->addHTML( Xml::element( 'h2', null, LogPage::logName( 'delete' ) ) );
                        LogEventsList::showLogExtract(
                                $wgOut,