mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 09:24:17 +09:00
Merge branch 'next' into next-push
This commit is contained in:
commit
b986f826ba
41 changed files with 1860 additions and 931 deletions
|
|
@ -312,7 +312,26 @@ class adminAdminView extends admin
|
|||
{
|
||||
$needUpdate = FALSE;
|
||||
$addTables = FALSE;
|
||||
foreach($module_list AS $key => $value)
|
||||
$priority = array(
|
||||
'module' => 1000000,
|
||||
'member' => 100000,
|
||||
'document' => 10000,
|
||||
'comment' => 1000,
|
||||
'file' => 100,
|
||||
);
|
||||
usort($module_list, function($a, $b) use($priority) {
|
||||
$a_priority = isset($priority[$a->module]) ? $priority[$a->module] : 0;
|
||||
$b_priority = isset($priority[$b->module]) ? $priority[$b->module] : 0;
|
||||
if ($a_priority == 0 && $b_priority == 0)
|
||||
{
|
||||
return strcmp($a->module, $b->module);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $b_priority - $a_priority;
|
||||
}
|
||||
});
|
||||
foreach($module_list as $value)
|
||||
{
|
||||
if($value->need_install)
|
||||
{
|
||||
|
|
@ -556,7 +575,7 @@ class adminAdminView extends admin
|
|||
Context::set('selected_timezone', Rhymix\Framework\Config::get('locale.default_timezone'));
|
||||
|
||||
// Other settings
|
||||
Context::set('use_rewrite', Rhymix\Framework\Config::get('use_rewrite'));
|
||||
Context::set('use_rewrite', Rhymix\Framework\Router::getRewriteLevel());
|
||||
Context::set('use_mobile_view', (config('mobile.enabled') !== null ? config('mobile.enabled') : config('use_mobile_view')) ? true : false);
|
||||
Context::set('tablets_as_mobile', config('mobile.tablets') ? true : false);
|
||||
Context::set('mobile_viewport', config('mobile.viewport') ?: 'width=device-width, initial-scale=1.0, user-scalable=yes');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue