X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fskins%2FSkinTemplate.php;h=c29c9963bf0ed0bc7b571a50a78c7f928c839c63;hb=b89342ffddae35af71c6dabc34c456fd5641c1df;hp=564220c52c771a1bbaf2e7fa2714aa2daf7e8b9f;hpb=f7b7d9400d993abb545db503d30e20206689a1e1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/skins/SkinTemplate.php b/includes/skins/SkinTemplate.php index 564220c52c..c29c9963bf 100644 --- a/includes/skins/SkinTemplate.php +++ b/includes/skins/SkinTemplate.php @@ -385,16 +385,20 @@ class SkinTemplate extends Skin { $tpl->set( 'lastmod', false ); $tpl->set( 'credits', false ); $tpl->set( 'numberofwatchingusers', false ); - if ( $out->isArticle() && $title->exists() ) { - if ( $this->isRevisionCurrent() ) { - if ( $wgMaxCredits != 0 ) { - $tpl->set( 'credits', Action::factory( 'credits', $this->getWikiPage(), - $this->getContext() )->getCredits( $wgMaxCredits, $wgShowCreditsIfMax ) ); - } else { - $tpl->set( 'lastmod', $this->lastModified() ); + if ( $title->exists() ) { + if ( $out->isArticle() ) { + if ( $this->isRevisionCurrent() ) { + if ( $wgMaxCredits != 0 ) { + $tpl->set( 'credits', Action::factory( 'credits', $this->getWikiPage(), + $this->getContext() )->getCredits( $wgMaxCredits, $wgShowCreditsIfMax ) ); + } else { + $tpl->set( 'lastmod', $this->lastModified() ); + } } } - $tpl->set( 'copyright', $this->getCopyright() ); + if ( $out->showsCopyright() ) { + $tpl->set( 'copyright', $this->getCopyright() ); + } } $tpl->set( 'copyrightico', $this->getCopyrightIcon() );