Fixed a bug for language text suggestion

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9173 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-09-16 01:53:32 +00:00
parent f24cab114b
commit 57b557caac
2 changed files with 1 additions and 18 deletions

View file

@ -245,23 +245,6 @@
return $output;
}
/**
* @brief Return current lang list
**/
function getLangListByLangcodeForAutoComplete()
{
$requestVars = Context::getRequestVars();
$args->site_srl = (int)$requestVars->site_srl;
$args->page = 1; // /< Page
$args->list_count = 100; // /< the number of posts to display on a single page
$args->page_count = 5; // /< the number of pages that appear in the page navigation
$args->sort_index = 'name';
$args->order_type = 'asc';
$args->search_keyword = Context::get('search_keyword'); // /< keyword to search*/
return $this->getLangListByLangcode($args);
}
function getModuleAdminIPCheck() {
$db_info = Context::getDBInfo();

View file

@ -1495,7 +1495,7 @@
$list = array();
if($output->toBool()){
foreach($output->data as $code_info){
foreach((array)$output->data as $code_info){
unset($codeInfo);
$codeInfo = array('name'=>'$user_lang->'.$code_info->name, 'value'=>$code_info->value);
$list[] = $codeInfo;