Changeset 9939

Show
Ignore:
Timestamp:
11/14/08 18:36:36 (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/Layout/AdminHTML.php

    r9809 r9939  
    278278        $t->Load(JAWS_DATA . 'themes/' . $theme . '/layout.html', false); 
    279279 
    280  
    281280        // Validate theme 
    282281        if (!isset($t->Blocks['layout'])) { 
     
    360359        } 
    361360        $GLOBALS['app']->Registry->Commit('core'); 
     361 
     362        //remove all cached files 
     363        $GLOBALS['app']->Cache->delete(); 
     364 
    362365        $GLOBALS['app']->Session->PushLastResponse(_t('LAYOUT_THEME_CHANGED'), RESPONSE_NOTICE); 
    363366        Jaws_Header::Location(BASE_SCRIPT . '?gadget=Layout');