From: Evan Prodromou Date: Tue, 29 Jun 2004 05:50:48 +0000 (+0000) Subject: Added credits item to PHP-TAL skin. X-Git-Tag: 1.5.0alpha1~2745 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=3febd62f21c17c84e8efaff018292dc09a97d11d;p=lhc%2Fweb%2Fwiklou.git Added credits item to PHP-TAL skin. --- diff --git a/includes/SkinPHPTal.php b/includes/SkinPHPTal.php index f56360f60f..2a098c34c2 100644 --- a/includes/SkinPHPTal.php +++ b/includes/SkinPHPTal.php @@ -64,7 +64,8 @@ global $wgScript, $wgStylePath, $wgLanguageCode, $wgUseNewInterlanguage; global $wgMimeType, $wgOutputEncoding, $wgUseDatabaseMessages, $wgRequest; global $wgDisableCounters, $wgLogo, $action, $wgFeedClasses, $wgSiteNotice; - + global $wgMaxCredits, $wgShowCreditsIfMax; + extract( $wgRequest->getValues( 'oldid', 'diff' ) ); $this->initPage( $out ); @@ -177,6 +178,16 @@ } $tpl->set('lastmod', $this->lastModified()); $tpl->set('copyright',$this->getCopyright()); + + $this->credits = false; + + if (isset($wgMaxCredits) && $wgMaxCredits != 0) { + require_once("Credits.php"); + $this->credits = getCredits($wgArticle, $wgMaxCredits, $wgShowCreditsIfMax); + } + + $tpl->setRef( "credits", $this->credits ); + } elseif ( isset( $oldid ) && !isset( $diff ) ) { $tpl->set('copyright', $this->getCopyright()); } @@ -189,7 +200,7 @@ $tpl->setRef( "debug", $out->mDebugtext ); $tpl->set( "reporttime", $out->reportTime() ); $tpl->set( "sitenotice", $wgSiteNotice ); - + $tpl->setRef( "bodytext", $out->mBodytext ); $language_urls = array(); diff --git a/templates/xhtml_slim.pt b/templates/xhtml_slim.pt index 7da0f397ef..72459bf3ed 100644 --- a/templates/xhtml_slim.pt +++ b/templates/xhtml_slim.pt @@ -138,6 +138,7 @@