BUG 8856 "Migrate the Clear cache Interface from master branch" UPDATE 1
- problem found on G::rm_dir() - fixed problem & WIN compatibility fixed too
This commit is contained in:
@@ -1,26 +1,30 @@
|
||||
<?php
|
||||
try {
|
||||
if ( (isset($_POST['javascriptCache'])) || (isset($_POST['metadataCache'])) || (isset($_POST['htmlCache']))) {
|
||||
if ((isset($_POST['javascriptCache'])) && (@chdir(PATH_C.'/ExtJs/'))) {
|
||||
G::rm_dir(PATH_C.'/ExtJs/');
|
||||
if (isset($_POST['javascriptCache']) || isset($_POST['metadataCache']) || isset($_POST['htmlCache'])) {
|
||||
|
||||
if (isset($_POST['javascriptCache'])) {
|
||||
G::rm_dir(PATH_C . 'ExtJs');
|
||||
$response->javascript = true;
|
||||
}
|
||||
if ((isset($_POST['metadataCache'])) && (@chdir(PATH_C.'/xmlform/'))) {
|
||||
G::rm_dir(PATH_C.'/xmlform/');
|
||||
|
||||
if (isset($_POST['metadataCache'])) {
|
||||
G::rm_dir(PATH_C . 'xmlform');
|
||||
$response->xmlform = true;
|
||||
}
|
||||
if((isset($_POST['htmlCache'])) && (@chdir(PATH_C.'/smarty/'))) {
|
||||
G::rm_dir(PATH_C.'/smarty/');
|
||||
|
||||
if (isset($_POST['htmlCache'])) {
|
||||
G::rm_dir(PATH_C . 'smarty');
|
||||
$response->smarty = true;
|
||||
}
|
||||
|
||||
$response->success = true;
|
||||
//$response->path = $path;
|
||||
}else{
|
||||
}
|
||||
else{
|
||||
$response->success = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch ( Exception $e ) {
|
||||
catch (Exception $e) {
|
||||
$response->success = false;
|
||||
$response->message = $e->getMessage();
|
||||
}
|
||||
echo G::json_encode($response);
|
||||
|
||||
Reference in New Issue
Block a user