mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
issue 26 Document status change with config.
old version coding with hard coding git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8448 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0ba04bb1f7
commit
e3376c3c3a
8 changed files with 45 additions and 20 deletions
|
|
@ -180,8 +180,8 @@
|
|||
$args->start_date = $obj->start_date?$obj->start_date:null;
|
||||
$args->end_date = $obj->end_date?$obj->end_date:null;
|
||||
$args->member_srl = $obj->member_srl;
|
||||
$args->statusList = $obj->statusList?$obj->statusList:array('SECRET', 'PUBLIC', 'PUBLISH');
|
||||
if($logged_info->is_admin == 'Y') $args->statusList = array('SECRET', 'PUBLIC', 'PUBLISH');
|
||||
$args->statusList = $obj->statusList?$obj->statusList:array($this->getConfigStatus('secret'), $this->getConfigStatus('public'));
|
||||
if($logged_info->is_admin == 'Y') $args->statusList = array($this->getConfigStatus('secret'), $this->getConfigStatus('public'));
|
||||
// Category is selected, further sub-categories until all conditions
|
||||
if($args->category_srl) {
|
||||
$category_list = $this->getCategoryList($args->module_srl);
|
||||
|
|
@ -927,8 +927,8 @@
|
|||
break;
|
||||
case 'is_notice' :
|
||||
case 'is_secret' :
|
||||
if($search_keyword=='N') $args->statusList = array('PUBLIC', 'PUBLISH');
|
||||
elseif($search_keyword=='Y') $args->statusList = array('SECRET');
|
||||
if($search_keyword=='N') $args->statusList = array($this->getConfigStatus('public'));
|
||||
elseif($search_keyword=='Y') $args->statusList = array($this->getConfigStatus('secret'));
|
||||
break;
|
||||
case 'member_srl' :
|
||||
case 'readed_count' :
|
||||
|
|
@ -1003,11 +1003,11 @@
|
|||
$this->add('voted_member_list',$output->data);
|
||||
}
|
||||
|
||||
function getStatusConfigList()
|
||||
function getStatusNameList()
|
||||
{
|
||||
global $lang;
|
||||
if(!isset($lang->status_name_list))
|
||||
return array('PRIVATE'=>'private', 'PUBLIC'=>'public', 'SECRET'=>'secret', 'TEMP'=>'temporary');
|
||||
return array_flip($this->getStatusList());
|
||||
else return $lang->status_name_list;
|
||||
}
|
||||
|
||||
|
|
@ -1083,8 +1083,8 @@
|
|||
break;
|
||||
case 'is_notice' :
|
||||
case 'is_secret' :
|
||||
if($search_keyword=='N') $args->statusList = array('PUBLIC', 'PUBLISH');
|
||||
elseif($search_keyword=='Y') $args->statusList = array('SECRET');
|
||||
if($search_keyword=='N') $args->statusList = array($this->getConfigStatus('public'));
|
||||
elseif($search_keyword=='Y') $args->statusList = array($this->getConfigStatus('secret'));
|
||||
break;
|
||||
case 'member_srl' :
|
||||
case 'readed_count' :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue