mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Misc fixes to install module
This commit is contained in:
parent
bb888a5037
commit
e59dc59664
2 changed files with 17 additions and 2 deletions
|
|
@ -161,10 +161,11 @@ class installController extends install
|
|||
$config['locale']['default_lang'] = Context::getLangType();
|
||||
$config['locale']['enabled_lang'] = array($config['locale']['default_lang']);
|
||||
|
||||
// Set the internal and default time zones.
|
||||
// Set the default time zone.
|
||||
if (strpos($time_zone, '/') !== false)
|
||||
{
|
||||
$config['locale']['default_timezone'] = $time_zone;
|
||||
$user_timezone = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -179,7 +180,20 @@ class installController extends install
|
|||
$config['locale']['default_timezone'] = 'Etc/GMT' . ($user_timezone > 0 ? '-' : '+') . abs($user_timezone);
|
||||
}
|
||||
}
|
||||
$config['locale']['internal_timezone'] = intval(date('Z'));
|
||||
|
||||
// Set the internal time zone.
|
||||
if ($config['locale']['default_timezone'] === 'Asia/Seoul')
|
||||
{
|
||||
$config['locale']['internal_timezone'] = 32400;
|
||||
}
|
||||
elseif ($user_timezone !== null)
|
||||
{
|
||||
$config['locale']['internal_timezone'] = $user_timezone * 3600;
|
||||
}
|
||||
else
|
||||
{
|
||||
$config['locale']['internal_timezone'] = 0;
|
||||
}
|
||||
|
||||
// Set the default URL.
|
||||
$config['url']['default'] = Context::getRequestUri();
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ jQuery(function($){
|
|||
$("#task-complete-install").click(function() {
|
||||
$("#task-complete-install").text($("#task-complete-install").data("installing"));
|
||||
$("#task-complete-install").prop("disabled", true);
|
||||
$(window).on("beforeunload", function() { return ""; });
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue