BUG 8856 Migrate the Clear cache Interface from master branch SOLVED.
- Migrate the Clear cache Interface from master branch. - Clear cache Interface ExtJS migrated from the master branch.
This commit is contained in:
@@ -23,22 +23,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
try{
|
||||
if( isset($_GET['result']) && $_GET['result'] == 'done') {
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH->AddContent('view', 'setup/clearCompiledResult');
|
||||
G::RenderPage('publish', 'blank');
|
||||
} else {
|
||||
if( isset($_GET['result']) && $_GET['result'] == 'confirm' ){
|
||||
if( defined('PATH_C') ){
|
||||
G::rm_dir(PATH_C);
|
||||
G::SendTemporalMessage('ID_CLEAR_CACHE_MSG1', 'tmp-info', 'label','','100%');
|
||||
G::header('location: clearCompiled?result=done');
|
||||
}
|
||||
} else {
|
||||
echo '<script>parent.parent.msgBox("'.G::LoadTranslation('ID_CLEAR_CACHE_CONFIRM1').'", "confirm", function(){location.href = "clearCompiled?result=confirm"}, function(){history.back()});</script>';
|
||||
}
|
||||
}
|
||||
} catch(Exception $e){
|
||||
G::SendTemporalMessage($oError->getMessage(), 'error', 'string');
|
||||
}
|
||||
$oHeadPublisher =& headPublisher::getSingleton();
|
||||
$oHeadPublisher->addExtJsScript('setup/clearCompiled', true ); //adding a javascript file .js
|
||||
|
||||
G::RenderPage('publish', 'extJs');
|
||||
|
||||
Reference in New Issue
Block a user