Index: trunk/admin/config/edit_template.php =================================================================== diff -u -r375 -r386 --- trunk/admin/config/edit_template.php (.../edit_template.php) (revision 375) +++ trunk/admin/config/edit_template.php (.../edit_template.php) (revision 386) @@ -12,6 +12,7 @@ ## result in revocation of the license and support ## ## privileges along maximum prosecution allowed by law. ## ############################################################## + if(!strlen($pathtoroot)) { $path=dirname(realpath(__FILE__)); @@ -87,16 +88,20 @@ require_once($pathtoroot.$admin."/listview/listview.php"); require_once($pathtoroot."kernel/include/tag-class.php"); + + $objTagList = new clsTagList(); -$objTagList->LoadGlobalTags(); +//$objTagList->LoadGlobalTags(); + $section = "in-portal:template_editor"; $ThemeId = GetVar('ThemeId'); $FileId = GetVar('FileId'); if(!GetVar('Action',true) || !is_object($f) ) $f = new clsThemeFile($FileId); + if($FileId) { $theme = new clsTheme( $f->Get("ThemeId") ); // create theme from file