mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
#51 preg_match()를 substr_compare() 또는 strncmp()로 대체
This commit is contained in:
parent
681a9b2d07
commit
63e0fd6f3b
20 changed files with 68 additions and 61 deletions
|
|
@ -232,7 +232,7 @@ class moduleController extends module
|
|||
}
|
||||
|
||||
$args->site_srl = getNextSequence();
|
||||
$args->domain = preg_replace('/\/$/','',$domain);
|
||||
$args->domain = (substr_compare($domain, '/', -1) === 0) ? substr($domain, 0, -1) : $domain;
|
||||
$args->index_module_srl = $index_module_srl;
|
||||
$args->default_language = Context::getLangType();
|
||||
|
||||
|
|
@ -264,7 +264,7 @@ class moduleController extends module
|
|||
|
||||
if($args->domain && !isSiteID($args->domain))
|
||||
{
|
||||
$args->domain = preg_replace('/\/$/','',$args->domain);
|
||||
$args->domain = (substr_compare($domain, '/', -1) === 0) ? substr($domain, 0, -1) : $domain;
|
||||
}
|
||||
}
|
||||
$output = executeQuery('module.updateSite', $args);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue