// Cleanup user translations
$traductions = json_decode($traductions, true);
foreach ($traductions as $k => $v) {
- $traductions[$k] = trim($v);
+ $traductions[$k] = $v;
}
$daoLang = new wsDAOLang($this->con);
// Cleanup base translations
$baseTraductions = $lang->traductions;
foreach ($baseTraductions as $k => $v) {
- $baseTraductions[$k] = trim($v);
+ $baseTraductions[$k] = $v;
}
// Then compare them. If there is no differences, we don't save translations in the book
if ($traductions == $baseTraductions) {
continue;\r
}\r
if (self::cleanstr($traductions[$k]) != self::cleanstr($v)) {\r
- fb(self::cleanstr($traductions[$k]));\r
- fb(self::cleanstr($v));\r
return false;\r
}\r
}\r
$c->update('WHERE lang_id = \'' . $core->con->escape($r->lang_id) . '\'');\r
}\r
}\r
-\r
-}\r
-\r
-?>
\ No newline at end of file
+}
\ No newline at end of file