From: Raimond Spekking Date: Tue, 7 Oct 2008 07:56:35 +0000 (+0000) Subject: Cleanup for r41782: use a common class, not a series of specific IDs. X-Git-Tag: 1.31.0-rc.0~44855 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27vote%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=037d0de4279e27dff5d547361df4d1b7a81a4e22;p=lhc%2Fweb%2Fwiklou.git Cleanup for r41782: use a common class, not a series of specific IDs. Per Brions codereview: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/41782#c124 --- diff --git a/includes/Article.php b/includes/Article.php index 143ca3617b..69f1fe932b 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -842,7 +842,7 @@ class Article { $count = $pager->getNumRows(); if( $count > 0 ) { $pager->mLimit = 10; - $wgOut->addHtml( '
' ); + $wgOut->addHtml( '
' ); $wgOut->addWikiMsg( 'deleted-notice' ); $wgOut->addHTML( $loglist->beginLogEventsList() . diff --git a/includes/EditPage.php b/includes/EditPage.php index f11affca2f..6ffa9c63c7 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1201,7 +1201,7 @@ class EditPage { $noticeMsg = 'protectedpagewarning'; $classes[] = 'mw-textarea-protected'; } - $wgOut->addHTML( "
\n" ); + $wgOut->addHTML( "
\n" ); $wgOut->addWikiMsg( $noticeMsg ); LogEventsList::showLogExtract( $wgOut, 'protect', $this->mTitle->getPrefixedText(), '', 1 ); $wgOut->addHTML( "
\n" ); @@ -2344,7 +2344,7 @@ END $count = $pager->getNumRows(); if ( $count > 0 ) { $pager->mLimit = 10; - $out->addHtml( '
' ); + $out->addHtml( '
' ); $out->addWikiMsg( 'recreate-deleted-warn' ); $out->addHTML( $loglist->beginLogEventsList() . diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index 55d51a0947..a61462d269 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -1735,7 +1735,7 @@ wgUploadAutoFill = {$autofill}; $loglist = new LogEventsList( $wgUser->getSkin(), $out ); $pager = new LogPager( $loglist, 'delete', false, $filename ); if( $pager->getNumRows() > 0 ) { - $out->addHtml( '
' ); + $out->addHtml( '
' ); $out->addWikiMsg( 'upload-wasdeleted' ); $out->addHTML( $loglist->beginLogEventsList() . diff --git a/skins/common/shared.css b/skins/common/shared.css index 8d5bd23b2d..9ce28a1ff1 100644 --- a/skins/common/shared.css +++ b/skins/common/shared.css @@ -279,20 +279,12 @@ td#mw-emailuser-sender, td#mw-emailuser-recipient { * Page protection warning * incl. log entries for these warnings */ -div#mw-upload-deleted-warn, -div#mw-deleted-notice, -div#mw-recreate-deleted-warn, -div#mw-edit-semiprotectedpagewarning, -div#mw-edit-protectedpagewarning { +div.mw-warning-with-logexcerpt { padding: 3px; margin-bottom: 3px; border: 2px solid #2F6FAB; } -div#mw-upload-deleted-warn ul li, -div#mw-deleted-notice ul li, -div#mw-recreate-deleted-warn ul li, -div#mw-edit-semiprotectedpagewarning ul li, -div#mw-edit-protectedpagewarning ul li { +div.mw-warning-with-logexcerpt ul li { font-size: 90%; }