mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Merge branch 'rhymix:master' into master
This commit is contained in:
commit
cb1fd188ef
111 changed files with 4286 additions and 5469 deletions
|
|
@ -55,19 +55,16 @@ class DocumentModel extends Document
|
|||
return;
|
||||
}
|
||||
|
||||
static $checked = array();
|
||||
static $module_extra_keys = array();
|
||||
|
||||
// check documents
|
||||
$document_srls = array();
|
||||
foreach($_document_list as $document_srl => $oDocument)
|
||||
{
|
||||
if(isset($checked[$document_srl]) || !($oDocument instanceof documentItem) || !$oDocument->isExists())
|
||||
if(isset($GLOBALS['XE_EXTRA_CHK'][$document_srl]) || !($oDocument instanceof documentItem) || !$oDocument->isExists())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$checked[$document_srl] = true;
|
||||
$GLOBALS['XE_EXTRA_CHK'][$document_srl] = true;
|
||||
$document_srls[] = $document_srl;
|
||||
}
|
||||
|
||||
|
|
@ -102,16 +99,16 @@ class DocumentModel extends Document
|
|||
if(!isset($GLOBALS['XE_EXTRA_VARS'][$document_srl]))
|
||||
{
|
||||
// get extra keys of the module
|
||||
if(!isset($module_extra_keys[$module_srl]))
|
||||
if(!isset($GLOBALS['XE_EXTRA_KEYS'][$module_srl]))
|
||||
{
|
||||
$module_extra_keys[$module_srl] = self::getExtraKeys($module_srl);
|
||||
$GLOBALS['XE_EXTRA_KEYS'][$module_srl] = self::getExtraKeys($module_srl);
|
||||
}
|
||||
|
||||
// set extra variables of the document
|
||||
if($module_extra_keys[$module_srl])
|
||||
if(!empty($GLOBALS['XE_EXTRA_KEYS'][$module_srl]))
|
||||
{
|
||||
$document_extra_vars = array();
|
||||
foreach($module_extra_keys[$module_srl] as $idx => $key)
|
||||
foreach($GLOBALS['XE_EXTRA_KEYS'][$module_srl] as $idx => $key)
|
||||
{
|
||||
$document_extra_vars[$idx] = clone($key);
|
||||
|
||||
|
|
@ -1491,11 +1488,13 @@ class DocumentModel extends Document
|
|||
case 'nick_name' :
|
||||
case 'email_address' :
|
||||
case 'homepage' :
|
||||
case 'regdate' :
|
||||
case 'last_update' :
|
||||
case 'ipaddress' :
|
||||
$args->{'s_' . $search_target} = str_replace(' ', '%', $search_keyword);
|
||||
break;
|
||||
case 'regdate' :
|
||||
case 'last_update' :
|
||||
$args->{'s_' . $search_target} = preg_replace('/[^\d]/', '', $search_keyword);
|
||||
break;
|
||||
case 'member_srl' :
|
||||
case 'readed_count' :
|
||||
case 'voted_count' :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue