[Options] Load the default language setting
这个提交包含在:
父节点
67ba28d145
当前提交
4770340c45
共有 1 个文件被更改,包括 8 次插入 和 4 次删除
|
|
@ -31,11 +31,15 @@ class OptionsLib {
|
|||
* Add option to the config system dynamicly option_name is prefixed by option_
|
||||
* you can then call $this->config->item('option_<option_name>') to get the item.
|
||||
*/
|
||||
|
||||
if($item->option_name == "language") {
|
||||
// language is a global internal config item there for we dont want to prefix it as an option
|
||||
$CI->config->set_item($item->option_name, $item->option_value);
|
||||
} else {
|
||||
$CI->config->set_item('option_'.$item->option_name, $item->option_value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// This returns a options value based on its name
|
||||
function get_option($option_name) {
|
||||
|
|
|
|||
正在加载…
在新工单中引用