Browse Source

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

Yannick Warnier 17 years ago
parent
commit
fea9ff9f74
1 changed files with 3 additions and 2 deletions
  1. 3 2
      main/inc/reduced_header.inc.php

+ 3 - 2
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