fix last commit
authorStricted <info@stricted.de>
Mon, 11 Jan 2016 15:49:12 +0000 (16:49 +0100)
committerStricted <info@stricted.de>
Mon, 11 Jan 2016 15:49:12 +0000 (16:49 +0100)
lib/system/DNS.class.php

index b5d2c87cdce643293d5056211e3fe7066bb51505..4dee3fe65de92a271d020acb4270024c87031190 100644 (file)
@@ -265,7 +265,7 @@ class DNS {
                                        $dir = $dir[0];
                                }
                                
-                               $filename = "lang.".$lang['languageCode'].".".$content.".tpl";
+                               $filename = "lang.".$lang['languageCode'].".".$item.".tpl";
                                if (file_exists($dir.$filename)) {
                                        $mtime = filemtime($dir.$filename);
                                        $maxLifetime = 3600;
@@ -277,7 +277,7 @@ class DNS {
                                
                                if (!file_exists($dir.$filename)) {
                                        $h = fopen($dir.$filename, "a+");
-                                       fwrite($h, $lang[$content]);
+                                       fwrite($h, $lang[$item]);
                                        fclose($h);
                                }