소스 검색

Template handling is now done in init.php, so this block is no longer needed. In fact, it screws up handling of different templates when users aren't logged in.

stevetruckstuff 19 년 전
부모
커밋
39f00fd984
1개의 변경된 파일0개의 추가작업 그리고 15개의 파일을 삭제
  1. 0 15
      src/style.php

+ 0 - 15
src/style.php

@@ -33,21 +33,6 @@ if (!isset($fontsets) || !is_array($fontsets)) {
     $fontsets=array();
     $fontsets=array();
 }
 }
 
 
-/**
- *  get template name and set used template directory
- *
- *  Existing file check has been moved into the template object, so it is
- *  not neccesary to do file_exists() here.
- * */
-if (sqgetGlobalVar('templateid',$templateid,SQ_GET)) {
-    $sTplDir = SM_PATH.'templates/'.basename($templateid).'/';
-} else {
-    $sTplDir = SM_PATH.'templates/default/';
-}
-
-$oTemplate = new Template($sTplDir);
-/** end block copy */
-
 /* set default colors in case color theme is not full */
 /* set default colors in case color theme is not full */
 $color = array();
 $color = array();
 $color[0]   = '#dcdcdc'; // (light gray)     TitleBar
 $color[0]   = '#dcdcdc'; // (light gray)     TitleBar