Skip to content

Commit 82e2a20

Browse files
author
Marius Cramer
committed
Fixed bug in language include
Removed workarounds
1 parent 14fe6d4 commit 82e2a20

File tree

4 files changed

+2
-11
lines changed

4 files changed

+2
-11
lines changed

interface/lib/classes/tform.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function loadFormDef($file, $module = '') {
131131
$this->module = $module;
132132
$wb = array();
133133

134-
include_once ISPC_ROOT_PATH.'/lib/lang/'.$_SESSION['s']['language'].'.lng';
134+
include ISPC_ROOT_PATH.'/lib/lang/'.$_SESSION['s']['language'].'.lng';
135135

136136
if(is_array($wb)) $wb_global = $wb;
137137

@@ -146,7 +146,7 @@ function loadFormDef($file, $module = '') {
146146
}
147147

148148
if(is_array($wb_global)) {
149-
$wb = $app->functions->array_merge($wb_global, $wb);
149+
$wb = array_merge($wb_global, $wb);
150150
}
151151
if(isset($wb_global)) unset($wb_global);
152152

interface/web/client/client_edit.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,6 @@ function onShowEnd() {
212212
}
213213
}
214214

215-
$app->tpl->setVar('btn_save_txt',$app->lng('btn_save_txt'));
216-
$app->tpl->setVar('btn_cancel_txt',$app->lng('btn_cancel_txt'));
217-
218215
parent::onShowEnd();
219216

220217
}

interface/web/client/reseller_edit.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@ function onShowEnd() {
159159
}
160160
}
161161

162-
$app->tpl->setVar('btn_save_txt',$app->lng('btn_save_txt'));
163-
$app->tpl->setVar('btn_cancel_txt',$app->lng('btn_cancel_txt'));
164-
165162
parent::onShowEnd();
166163

167164
}

interface/web/sites/web_domain_edit.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,6 @@ function onShowEnd() {
471471
}
472472
}
473473

474-
$app->tpl->setVar('btn_save_txt',$app->lng('btn_save_txt'));
475-
$app->tpl->setVar('btn_cancel_txt',$app->lng('btn_cancel_txt'));
476-
477474
parent::onShowEnd();
478475
}
479476

0 commit comments

Comments
 (0)