From 450f8932cfc54fdfcaa2613524c885c33b8edce9 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Mon, 9 Aug 2010 19:35:56 +0000 Subject: [PATCH] * (bug 11005) Add CSS class to empty pages in Special:Newpages --- RELEASE-NOTES | 1 + includes/specials/SpecialNewpages.php | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 3bd9e30d48..6e7a3a9cca 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -143,6 +143,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN punctuation or non-English letters, so a section named "Hello?" will now result in a URL ending in "#Hello?" rather than "#Hello.3F". * (bug 8140) Add dedicated CSS classes to Special:Newpages elements +* (bug 11005) Add CSS class to empty pages in Special:Newpages === Bug fixes in 1.17 === * (bug 17560) Half-broken deletion moved image files to deletion archive diff --git a/includes/specials/SpecialNewpages.php b/includes/specials/SpecialNewpages.php index 1661e9622f..54fedea971 100644 --- a/includes/specials/SpecialNewpages.php +++ b/includes/specials/SpecialNewpages.php @@ -298,8 +298,14 @@ class SpecialNewpages extends IncludableSpecialPage { $this->skin->userToolLinks( $result->rc_user, $result->rc_user_text ); $comment = $this->skin->commentBlock( $result->rc_comment ); - if ( $this->patrollable( $result ) ) + if ( $this->patrollable( $result ) ) { $classes[] = 'not-patrolled'; + } + + # Add a class for zero byte pages + if ( $result->length == 0 ) { + $classes[] = 'mw-newpages-zero-byte-page'; + } # Tags, if any. check for including due to bug 23293 if ( !$this->including() ) { -- 2.20.1