Changeset 9940

Show
Ignore:
Timestamp:
11/14/08 19:59:21 (2 months ago)
Author:
afz
Message:

remove all cache if user change default theme(maybe user customize gadget template in theme)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/0.8/jaws/html/gadgets/Tms/AdminModel.php

    r9905 r9940  
    116116            $GLOBALS['app']->Registry->Set('/config/theme', $theme); 
    117117            $GLOBALS['app']->Registry->Commit('core'); 
     118 
     119            //remove all cached files 
     120            $GLOBALS['app']->Cache->delete(); 
     121 
    118122            $GLOBALS['app']->Session->PushLastResponse(_t('TMS_RESPONSE_THEME_IS_DEFAULT', $theme), RESPONSE_NOTICE); 
    119123            return true;