* (bug 11005) Add CSS class to empty pages in Special:Newpages
This commit is contained in:
parent
f246cda5dd
commit
450f8932cf
2 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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() ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue