From 1bfaa9eb907c15da26d079495eb3937ac4a6c073 Mon Sep 17 00:00:00 2001 From: Luis Fernando Saisa Lopez Date: Tue, 4 Nov 2014 17:19:50 -0400 Subject: [PATCH] =?UTF-8?q?PM=20797=20"La=20descripci=C3=B3e=20los=20logs?= =?UTF-8?q?=20de=20Clear=20Cache..."=20SOLVED?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .../methods/setup/clearCompiledAjax.php | 68 +++++++++++++++---- 1 file changed, 54 insertions(+), 14 deletions(-) diff --git a/workflow/engine/methods/setup/clearCompiledAjax.php b/workflow/engine/methods/setup/clearCompiledAjax.php index d665b64d8..ccbabcf28 100644 --- a/workflow/engine/methods/setup/clearCompiledAjax.php +++ b/workflow/engine/methods/setup/clearCompiledAjax.php @@ -3,23 +3,63 @@ try { $response = new stdClass; if (isset( $_POST['javascriptCache'] ) || isset( $_POST['metadataCache'] ) || isset( $_POST['htmlCache'] )) { - $msgLog = ''; - if (isset( $_POST['javascriptCache'] )) { - G::rm_dir( PATH_C . 'ExtJs' ); + $msgLog = ""; + $msgLogAux = ""; + + if (isset($_POST["javascriptCache"])) { + G::rm_dir(PATH_C . "ExtJs"); $response->javascript = true; - $msgLog .= 'Javascript cache '; - } - if (isset( $_POST['metadataCache'] )) { - G::rm_dir( PATH_C . 'xmlform' ); - $response->xmlform = true; - $msgLog .= 'Forms Metadata cache '; - } + $msgLog = $msgLog . "Javascript Cache"; - if (isset( $_POST['htmlCache'] )) { - G::rm_dir( PATH_C . 'smarty' ); - $response->smarty = true; - $msgLog .= 'Forms Html Templates cache '; + if (isset($_POST["metadataCache"])) { + G::rm_dir(PATH_C . "xmlform"); + $response->xmlform = true; + + $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;