Add 'packager' config info for packagers to change for their portals

1.10.x
Yannick Warnier 9 years ago
parent 1418a604be
commit 9ec471e678
  1. 9
      main/inc/ajax/admin.ajax.php
  2. 5
      main/install/configuration.dist.php

@ -127,6 +127,10 @@ function check_system_version()
// The number of sessions
$number_of_sessions = Statistics::countSessions();
$packager = api_get_configuration_value('packager');
if (empty($packager)) {
$packager = 'chamilo';
}
$data = array(
'url' => api_get_path(WEB_PATH),
@ -144,6 +148,11 @@ function check_system_version()
'language' => api_get_setting('platformLanguage'), //helps us know the spread of language usage for campuses, by main language
'adminname' => api_get_setting('administratorName').' '.api_get_setting('administratorSurname'), //not sure this is necessary...
'ip' => $_SERVER['REMOTE_ADDR'], //the admin's IP address, with the only purpose of trying to geolocate portals around the globe to draw a map
// Reference to the packager system or provider through which
// Chamilo is installed/downloaded. Packagers can change this in
// the default config file (main/install/configuration.dist.php)
// or in the installed config file. The default value is 'chamilo'
'packager' => $packager,
);
$version = null;
// version.php has been updated to include the version in an HTTP header

@ -242,3 +242,8 @@ $_configuration['system_stable'] = NEW_VERSION_STABLE;
//$_configuration['messaging_gdc_api_key'] = '';
// Text to speech google app id
//$_configuration['translate_app_google_key'] = '';
// Reference to the packager system or provider through which
// Chamilo is installed/downloaded. Packagers can change this
// to reflect their packaging method. The default value is 'chamilo'. This will
// be reflected on the https://version.chamilo.org/stats page in the future.
//$_configuration['packager'] = 'chamilo';

Loading…
Cancel
Save