tools工具语言包的处理

//模板语言包处理 避免没有生产关于语言包缓存的时候英文
if(!file_exists('./data/plugindata/tools.lang.php')){
	require DISCUZ_ROOT.'./data/plugindata/tools.lang.'.CHARSET.'.php';
} else {
	require DISCUZ_ROOT.'./data/plugindata/tools.lang.php';
}
foreach($scriptlang['tools'] as $key => $value){
	$key = 'toolss_'.$key;
	$$key = $value;
}
foreach($templatelang['tools'] as $key => $value){
	$key = 'tools_'.$key;
	$$key = $value;
}
//模板语言包处理 end

Comments

No comments yet. Why don’t you start the discussion?

发表回复