소스 검색

Variable name is misleading, if technically correct. I'd personally eventually like to see a wrapper (class) around template ids, names, dirs, and other attributes.

pdontthink 19 년 전
부모
커밋
323f85d570
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      functions/page_header.php

+ 3 - 3
functions/page_header.php

@@ -57,14 +57,14 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE
      * Add closing / to link and meta elements only after switching to xhtml 1.0 Transitional.
      * It is not compatible with html 4.01 Transitional
      */
-    $templateid=basename($sTplDir);
+    $templatedir=basename($sTplDir);
     $oTemplate->assign('base_uri',$base_uri);
-    $oTemplate->assign('templateid',$templateid);
+    $oTemplate->assign('templatedir',$templatedir);
     $oTemplate->assign('themeid',$used_theme);
     $oTemplate->display('stylelink.tpl');
     echo '<link rel="stylesheet" type="text/css" href="'. $base_uri .'src/style.php'
         .'?themeid='.$used_theme
-        .'&amp;templateid='.$templateid
+        .'&amp;templatedir='.$templatedir
         .(!empty($used_fontset) ? '&amp;fontset='.$used_fontset : '')
         .(!empty($used_fontsize) ? '&amp;fontsize='.$used_fontsize : '')
         .(!empty($text_direction) ? '&amp;dir='.$text_direction : '')."\">\n";