From: Raimond Spekking Date: Mon, 19 Oct 2009 16:43:31 +0000 (+0000) Subject: * (bug 21047) Wrap "cannotdelete" message into a div with the generic 'error' class... X-Git-Tag: 1.31.0-rc.0~39232 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=859f26a5ba60297327b852691c5e604237782398;p=lhc%2Fweb%2Fwiklou.git * (bug 21047) Wrap "cannotdelete" message into a div with the generic 'error' class and a specific 'mw-error-cannotdelete' class Based on a patch by Platonides --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9acf54ce02..05e33c8f2a 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/Article.php b/includes/Article.php index 6de0641828..7d1faab8a6 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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,