* (bug 11005) Add CSS class to empty pages in Special:Newpages

This commit is contained in:
Raimond Spekking 2010-08-09 19:35:56 +00:00
parent f246cda5dd
commit 450f8932cf
2 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -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() ) {