From 3fce8769d8ea7ed31a60140d172a1b7656b1f130 Mon Sep 17 00:00:00 2001 From: Brayan Osmar Pereyra Suxo Date: Thu, 18 Apr 2013 12:36:57 -0400 Subject: [PATCH] Arreglo de error en la configuracion de lenguaje Arreglo de error en la configuracion de lenguaje --- workflow/engine/classes/class.configuration.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/workflow/engine/classes/class.configuration.php b/workflow/engine/classes/class.configuration.php index 21e62447e..ac6aa04cd 100755 --- a/workflow/engine/classes/class.configuration.php +++ b/workflow/engine/classes/class.configuration.php @@ -520,10 +520,10 @@ class Configurations // extends Configuration $maskTime = array('d' => '%d', 'D' => '%a', 'j' => '%e', 'l' => '%A', 'N' => '%u', 'S' => '%d', 'w' => '%w', 'z' => '%j', 'W' => '%W', 'F' => '%B', 'm' => '%m', 'M' => '%h', 'n' => '%m', 'o' => '%Y', 'Y' => '%Y', 'y' => '%g', 'a' => '%P', 'A' => '%p', 'g' => '%l', 'G' => '%k', 'h' => '%I', 'H' => '%H', 'i' => '%M', 's' => '%S'); $creationDateMask = trim($creationDateMask); for ($i = 0; $i < strlen($creationDateMask); $i++) { - if ($creationDateMask[$i] == ' ' || $creationDateMask[$i] == ',') { - $newCreation .= $creationDateMask[$i]; - } else { + if ($creationDateMask[$i] != ' ' && isset($maskTime[$creationDateMask[$i]])) { $newCreation .= $maskTime[$creationDateMask[$i]]; + } else { + $newCreation .= $creationDateMask[$i]; } }