mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
URL 끝에 슬래시 붙여주기
This commit is contained in:
parent
d98fcd10be
commit
f60b34c8ec
1 changed files with 14 additions and 2 deletions
|
|
@ -434,9 +434,21 @@ class autoinstallAdminController extends autoinstall
|
|||
|
||||
function procAutoinstallAdminInsertConfig()
|
||||
{
|
||||
// if end of string does not have a slash, add it
|
||||
$_location_site = Context::get('location_site');
|
||||
if(substr($_location_site, -1) != '/')
|
||||
{
|
||||
$_location_site .= '/';
|
||||
}
|
||||
$_download_server = Context::get('download_server');
|
||||
if(substr($_download_server, -1) != '/')
|
||||
{
|
||||
$_download_server .= '/';
|
||||
}
|
||||
|
||||
$args = new stdClass();
|
||||
$args->location_site = Context::get('location_site');
|
||||
$args->download_server = Context::get('download_server');
|
||||
$args->location_site = $_location_site;
|
||||
$args->download_server = $_download_server;
|
||||
|
||||
$oModuleController = getController('module');
|
||||
$output = $oModuleController->updateModuleConfig('autoinstall', $args);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue