Index: branches/SkinSystemRewrite/includes/Skin.php |
— | — | @@ -3057,11 +3057,19 @@ |
3058 | 3058 | global $wgRequest; |
3059 | 3059 | $action = $wgRequest->getVal( 'action', 'view' ); |
3060 | 3060 | if ( $this->mTitle->getNamespace() != NS_SPECIAL && $action !== 'edit' ) { |
3061 | | - $s .= "\t\t" . '<li id="lastmod">' . $this->lastModified() . '</li> |
3062 | | - <li id="viewcount">' . $this->getViewCount() . '</li> |
3063 | | - <li id="numberofwatchingusers">' . $this->getNumberOfWatchingUsers() . '</li> |
3064 | | - <li id="credits">' . $this->getCredits() . '</li> |
3065 | | - <li id="copyrights">' . $this->getCopyright() . '</li>' . "\n"; |
| 3061 | + $s .= "\t\t" . '<li id="lastmod">' . $this->lastModified() . '</li>'; |
| 3062 | + if ( $this->getViewCount() ) { |
| 3063 | + $s .= "\t\t" . '<li id="viewcount">' . $this->getViewCount() . '</li>' . "\n"; |
| 3064 | + } |
| 3065 | + if ( $this->getNumberOfWatchingUsers() ) { |
| 3066 | + $s .= "\t\t" . '<li id="numberofwatchingusers">' . $this->getNumberOfWatchingUsers() . '</li>' . "\n"; |
| 3067 | + } |
| 3068 | + if ( $this->getCredits() ) { |
| 3069 | + $s .= "\t\t" . '<li id="credits">' . $this->getCredits() . '</li>' . "\n"; |
| 3070 | + } |
| 3071 | + if ( $this->getCopyright() ) { |
| 3072 | + $s .= "\t\t" . '<li id="copyrights">' . $this->getCopyright() . '</li>' . "\n"; |
| 3073 | + } |
3066 | 3074 | } |
3067 | 3075 | $s .= "\t\t" . '<li id="privacy">' . $this->privacyLink() . '</li> |
3068 | 3076 | <li id="about">' . $this->aboutLink() . '</li> |