Index: branches/unlabeled/unlabeled-1.36.2/core/units/admin/admin_tag_processor.php =================================================================== diff -u -r8235 -r8291 --- branches/unlabeled/unlabeled-1.36.2/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 8235) +++ branches/unlabeled/unlabeled-1.36.2/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 8291) @@ -771,7 +771,7 @@ $css_url = $this->Application->BaseURL(WRITEBALE_BASE).'user_files/'; if (isset($params['type']) && $params['type'] == 'logo') { - return $css_url.$style['Logo']; + return $style['Logo'] ? $css_url.$style['Logo'] : ''; } $last_compiled = $style['LastCompiled']; @@ -803,8 +803,16 @@ $ret = $css_url.'admin-'.$style_name.'-'.$last_compiled.'.css'; } else { - // not found - return ''; + // not found (try to compile on the fly) + $object =& $this->Application->recallObject('skin.-item', null, Array ('skip_autoload' => true)); + /* @var $object kDBItem */ + + $skin_eh =& $this->Application->recallObject('skin_EventHandler'); + /* @var $skin_eh SkinEventHandler */ + + $object->Load(1, 'IsPrimary'); + $skin_eh->Compile($object); + $ret = $css_url.'admin-'.$style_name.'-'.adodb_mktime().'.css'; } }