Fixed bug in language include
Removed workarounds
| | |
| | | $this->module = $module; |
| | | $wb = array(); |
| | | |
| | | include_once ISPC_ROOT_PATH.'/lib/lang/'.$_SESSION['s']['language'].'.lng'; |
| | | include ISPC_ROOT_PATH.'/lib/lang/'.$_SESSION['s']['language'].'.lng'; |
| | | |
| | | if(is_array($wb)) $wb_global = $wb; |
| | | |
| | |
| | | } |
| | | |
| | | if(is_array($wb_global)) { |
| | | $wb = $app->functions->array_merge($wb_global, $wb); |
| | | $wb = array_merge($wb_global, $wb); |
| | | } |
| | | if(isset($wb_global)) unset($wb_global); |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | $app->tpl->setVar('btn_save_txt',$app->lng('btn_save_txt')); |
| | | $app->tpl->setVar('btn_cancel_txt',$app->lng('btn_cancel_txt')); |
| | | |
| | | parent::onShowEnd(); |
| | | |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | $app->tpl->setVar('btn_save_txt',$app->lng('btn_save_txt')); |
| | | $app->tpl->setVar('btn_cancel_txt',$app->lng('btn_cancel_txt')); |
| | | |
| | | parent::onShowEnd(); |
| | | |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | $app->tpl->setVar('btn_save_txt',$app->lng('btn_save_txt')); |
| | | $app->tpl->setVar('btn_cancel_txt',$app->lng('btn_cancel_txt')); |
| | | |
| | | parent::onShowEnd(); |
| | | } |
| | | |