[svn r12848] Minor - improve lightly processing time by getting stylesheets setting only one time

skala
Yannick Warnier 19 years ago
parent 4ec271e49f
commit fea9ff9f74
  1. 5
      main/inc/reduced_header.inc.php

@ -69,12 +69,13 @@ echo get_setting('siteName');
</title>
<?php
if(api_get_setting('stylesheets')<>'')
$style = api_get_setting('stylesheets');
if($style<>'')
{
?>
<style type="text/css" media="screen, projection">
/*<![CDATA[*/
@import "<?php echo api_get_path(WEB_CODE_PATH); ?>css/<?php echo api_get_setting('stylesheets');?>/default.css";
@import "<?php echo api_get_path(WEB_CODE_PATH); ?>css/<?php echo $style;?>/default.css";
/*]]>*/
</style>
<?php

Loading…
Cancel
Save