PM 797 "La descripcióe los logs de Clear Cache..." SOLVED

Code Issue:
La descripcion los logs de "Clear Cache" estan siendo mostrados sin ningun caracter de separacion
Solution:
Se coloca el caracter de separacion "," para comprender mejor los mensajes.
This commit is contained in:
Luis Fernando Saisa Lopez
2014-11-04 17:19:50 -04:00
parent a145249f9b
commit 1bfaa9eb90

View File

@@ -3,23 +3,63 @@ try {
$response = new stdClass; $response = new stdClass;
if (isset( $_POST['javascriptCache'] ) || isset( $_POST['metadataCache'] ) || isset( $_POST['htmlCache'] )) { if (isset( $_POST['javascriptCache'] ) || isset( $_POST['metadataCache'] ) || isset( $_POST['htmlCache'] )) {
$msgLog = ''; $msgLog = "";
if (isset( $_POST['javascriptCache'] )) { $msgLogAux = "";
G::rm_dir( PATH_C . 'ExtJs' );
if (isset($_POST["javascriptCache"])) {
G::rm_dir(PATH_C . "ExtJs");
$response->javascript = true; $response->javascript = true;
$msgLog .= 'Javascript cache ';
}
if (isset( $_POST['metadataCache'] )) { $msgLog = $msgLog . "Javascript Cache";
G::rm_dir( PATH_C . 'xmlform' );
$response->xmlform = true;
$msgLog .= 'Forms Metadata cache ';
}
if (isset( $_POST['htmlCache'] )) { if (isset($_POST["metadataCache"])) {
G::rm_dir( PATH_C . 'smarty' ); G::rm_dir(PATH_C . "xmlform");
$response->smarty = true; $response->xmlform = true;
$msgLog .= 'Forms Html Templates cache ';
$msgLogAux = $msgLog;
$msgLog = $msgLog . ", Forms Metadata Cache";
if (isset($_POST["htmlCache"])) {
G::rm_dir(PATH_C . "smarty");
$response->smarty = true;
$msgLog = $msgLog . " and Forms Html Templates Cache.";
} else {
$msgLog = $msgLogAux ." and Forms Metadata Cache.";
}
} else {
if (isset($_POST["htmlCache"])) {
G::rm_dir(PATH_C . "smarty");
$response->smarty = true;
$msgLog = $msgLog . " and Forms Html Templates Cache.";
} else {
$msgLog = $msgLog . ".";
}
}
} else {
if (isset($_POST["metadataCache"])) {
G::rm_dir(PATH_C . "xmlform");
$response->xmlform = true;
$msgLog = $msgLog . "Forms Metadata Cache";
if (isset($_POST["htmlCache"])) {
G::rm_dir(PATH_C . "smarty");
$response->smarty = true;
$msgLog = $msgLog . " and Forms Html Templates Cache.";
} else {
$msgLog = $msgLog . ".";
}
} else {
if (isset($_POST["htmlCache"])) {
G::rm_dir(PATH_C . "smarty");
$response->smarty = true;
$msgLog = $msgLog . "Forms Html Templates Cache.";
}
}
} }
$response->success = true; $response->success = true;