From f99b37f56dad8e3a1f844f8d3b33ee1ba4b86d62 Mon Sep 17 00:00:00 2001
From: latham <latham@ispconfig3>
Date: Wed, 25 May 2011 19:11:40 -0400
Subject: [PATCH] the altertable for the groups

---
 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