summaryrefslogtreecommitdiffstats
path: root/modules/translation.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2014-10-09 16:11:03 +0200
committerSimon Rettberg2014-10-09 16:11:03 +0200
commit93f0b1409961838c7571eaa045942eaad53cc72d (patch)
tree33378e6d5f48aebd3a4b274e01e3d7f5397a9d2b /modules/translation.inc.php
parentBig load of changes (diff)
downloadslx-admin-93f0b1409961838c7571eaa045942eaad53cc72d.tar.gz
slx-admin-93f0b1409961838c7571eaa045942eaad53cc72d.tar.xz
slx-admin-93f0b1409961838c7571eaa045942eaad53cc72d.zip
Create parent directories when saving trnalsations, add translations for eventlog and main menu
Diffstat (limited to 'modules/translation.inc.php')
-rw-r--r--modules/translation.inc.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/translation.inc.php b/modules/translation.inc.php
index 594c65dc..c10facb2 100644
--- a/modules/translation.inc.php
+++ b/modules/translation.inc.php
@@ -407,6 +407,7 @@ class Page_Translation extends Page
Message::addError('invalid-path');
Util::redirect('?do=Translation');
}
+ @mkdir(dirname($path), 0755, true);
ksort($array); // Sort by key, so the diff on the output is cleaner
$json = up_json_encode($array, JSON_PRETTY_PRINT); // Also for better diffability of the json files, we pretty print
//exits the function in case the action was unsuccessful