diff options
author | Simon Rettberg | 2014-10-09 16:11:03 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-10-09 16:11:03 +0200 |
commit | 93f0b1409961838c7571eaa045942eaad53cc72d (patch) | |
tree | 33378e6d5f48aebd3a4b274e01e3d7f5397a9d2b /modules | |
parent | Big load of changes (diff) | |
download | slx-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')
-rw-r--r-- | modules/translation.inc.php | 1 |
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 |