various issues from the forums
This commit is contained in:
25
boot.php
25
boot.php
@@ -998,7 +998,7 @@ class App {
|
||||
'$user_scalable' => $user_scalable,
|
||||
'$baseurl' => $this->get_baseurl(),
|
||||
'$local_channel' => local_channel(),
|
||||
'$generator' => PLATFORM_NAME . ' ' . RED_VERSION,
|
||||
'$generator' => get_platform_name() . ((get_project_version()) ? ' ' . get_project_version() : ''),
|
||||
'$update_interval' => $interval,
|
||||
'$icon' => head_get_icon(),
|
||||
'$head_css' => head_get_css(),
|
||||
@@ -2338,3 +2338,26 @@ function check_cron_broken() {
|
||||
set_config('system','lastpollcheck',datetime_convert());
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
function get_platform_name() {
|
||||
$a = get_app();
|
||||
if(is_array($a->config) && is_array($a->config['system']) && $a->config['system']['platform_name'])
|
||||
return $a->config['system']['platform_name'];
|
||||
return PLATFORM_NAME;
|
||||
}
|
||||
|
||||
function get_project_version() {
|
||||
$a = get_app();
|
||||
if(is_array($a->config) && is_array($a->config['system']) && $a->config['system']['hide_version'])
|
||||
return '';
|
||||
return RED_VERSION;
|
||||
}
|
||||
|
||||
function get_update_version() {
|
||||
$a = get_app();
|
||||
if(is_array($a->config) && is_array($a->config['system']) && $a->config['system']['hide_version'])
|
||||
return '';
|
||||
return DB_UPDATE_VERSION;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user