mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
save missing translations into cachedir
This commit is contained in:
parent
8a473031a6
commit
25657c2f64
|
@ -493,7 +493,7 @@ switch($command) {
|
|||
case 'submittranslation': /* {{{ */
|
||||
if($settings->_showMissingTranslations) {
|
||||
if($user && !empty($_POST['phrase'])) {
|
||||
if($fp = fopen('/tmp/newtranslations.txt', 'a+')) {
|
||||
if($fp = fopen($settings->_cacheDir.'/newtranslations.txt', 'a+')) {
|
||||
fputcsv($fp, array(date('Y-m-d H:i:s'), $user->getLogin(), $_POST['key'], $_POST['lang'], $_POST['phrase']));
|
||||
fclose($fp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user