From 859f26a5ba60297327b852691c5e604237782398 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Mon, 19 Oct 2009 16:43:31 +0000 Subject: [PATCH] * (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 --- RELEASE-NOTES | 3 ++- includes/Article.php | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) 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, -- 2.20.1