From 2e961201be67cc348e7da22ad7c32c87c9f3d30d Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 11 May 2010 07:00:08 -0400
Subject: [PATCH] Fixed: FS#1186 - Error in Installer r1728

---
 interface/lib/classes/plugin_listview.inc.php |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/interface/lib/classes/plugin_listview.inc.php b/interface/lib/classes/plugin_listview.inc.php
index ee254da..e543e25 100644
--- a/interface/lib/classes/plugin_listview.inc.php
+++ b/interface/lib/classes/plugin_listview.inc.php
@@ -83,6 +83,11 @@
 					$sql_order_by = $this->options["sql_order_by"];
 				}
 				
+				// Loading language field
+                $lng_file = "lib/lang/".$_SESSION["s"]["language"]."_".$app->listform->listDef['name']."_list.lng";
+                include($lng_file);
+                $listTpl->setVar($wb);
+				
 
                 // Get the data
                 $records = $app->db->queryAllRecords("SELECT * FROM ".$app->listform->listDef["table"]." WHERE $sql_where $sql_order_by $limit_sql");
@@ -115,18 +120,13 @@
 
                                 // The variable "id" contains always the index field
                                 $rec["id"] = $rec[$idx_key];
-								$rec["delete_confirmation"] = $app->lng('delete_confirmation');
+								$rec["delete_confirmation"] = $wb['delete_confirmation'];
 
                                 $records_new[] = $rec;
                         }
                 }
 
                 $listTpl->setLoop('records',@$records_new);
-
-                // Loading language field
-                $lng_file = "lib/lang/".$_SESSION["s"]["language"]."_".$app->listform->listDef['name']."_list.lng";
-                include($lng_file);
-                $listTpl->setVar($wb);
 
                 // Setting Returnto information in the session
                 $list_name = $app->listform->listDef["name"];

--
Gitblit v1.9.1