mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +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()
|
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 = new stdClass();
|
||||||
$args->location_site = Context::get('location_site');
|
$args->location_site = $_location_site;
|
||||||
$args->download_server = Context::get('download_server');
|
$args->download_server = $_download_server;
|
||||||
|
|
||||||
$oModuleController = getController('module');
|
$oModuleController = getController('module');
|
||||||
$output = $oModuleController->updateModuleConfig('autoinstall', $args);
|
$output = $oModuleController->updateModuleConfig('autoinstall', $args);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue