From e15295406e45c3f7944ed571dba8f099a9b5ac59 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 05 Apr 2012 08:46:46 -0400
Subject: [PATCH] Fixed: FS#2119 - String missing in language files? Uploaded new HR language file set.

---
 interface/web/dns/dns_import.php |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/interface/web/dns/dns_import.php b/interface/web/dns/dns_import.php
index 3aaaf3f..c43ae16 100644
--- a/interface/web/dns/dns_import.php
+++ b/interface/web/dns/dns_import.php
@@ -120,6 +120,10 @@
 	$app->tpl->setVar("client_group_id",$client_select);
 }
 
+$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_dns_import.lng';
+include($lng_file);
+$app->tpl->setVar($wb);
+
 // Import the zone-file
 //if(1=="1")
 if(isset($_FILES['file']['name']) && is_uploaded_file($_FILES['file']['tmp_name'])){
@@ -545,18 +549,15 @@
 		$error .= $app->lng('error_no_valid_zone_file_txt');
 	}
 	//header('Location: /dns/dns_soa_edit.php?id='.$dns_soa_id);
+} else {
+	if(isset($_FILES['file']['name'])) {
+		$error = $wb['no_file_uploaded_error'];
+	}
 }
 
 
 $app->tpl->setVar('msg',$msg);
 $app->tpl->setVar('error',$error);
-
-$app->tpl->setVar("title",'Import Zone Files');
-$app->tpl->setVar("zonefile_to_import_txt",$app->lng('zonefile_to_import_txt'));
-
-$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_dns_wizard.lng';
-include($lng_file);
-$app->tpl->setVar($wb);
 
 $app->tpl_defaults();
 $app->tpl->pparse();

--
Gitblit v1.9.1