File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,11 @@ function onShow() {
8383 $ sql_order_by = $ this ->options ["sql_order_by " ];
8484 }
8585
86+ // Loading language field
87+ $ lng_file = "lib/lang/ " .$ _SESSION ["s " ]["language " ]."_ " .$ app ->listform ->listDef ['name ' ]."_list.lng " ;
88+ include ($ lng_file );
89+ $ listTpl ->setVar ($ wb );
90+
8691
8792 // Get the data
8893 $ records = $ app ->db ->queryAllRecords ("SELECT * FROM " .$ app ->listform ->listDef ["table " ]." WHERE $ sql_where $ sql_order_by $ limit_sql " );
@@ -115,19 +120,14 @@ function onShow() {
115120
116121 // The variable "id" contains always the index field
117122 $ rec ["id " ] = $ rec [$ idx_key ];
118- $ rec ["delete_confirmation " ] = $ app -> lng ( 'delete_confirmation ' ) ;
123+ $ rec ["delete_confirmation " ] = $ wb [ 'delete_confirmation ' ] ;
119124
120125 $ records_new [] = $ rec ;
121126 }
122127 }
123128
124129 $ listTpl ->setLoop ('records ' ,@$ records_new );
125130
126- // Loading language field
127- $ lng_file = "lib/lang/ " .$ _SESSION ["s " ]["language " ]."_ " .$ app ->listform ->listDef ['name ' ]."_list.lng " ;
128- include ($ lng_file );
129- $ listTpl ->setVar ($ wb );
130-
131131 // Setting Returnto information in the session
132132 $ list_name = $ app ->listform ->listDef ["name " ];
133133 // $_SESSION["s"]["list"][$list_name]["parent_id"] = $app->tform_actions->id;
Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ $wb["type_txt"] = 'Type';
1010$wb["add_new_record_txt"] = 'Add new DNS A-Record';
1111$wb["page_txt"] = 'Page';
1212$wb["page_of_txt"] = 'of';
13+ $wb['delete_confirmation'] = 'Do you really want to delete this record?';
1314?>
You can’t perform that action at this time.
0 commit comments