diff --git a/main/inc/ajax/admin.ajax.php b/main/inc/ajax/admin.ajax.php index 2f8223a3fe..009717c00b 100755 --- a/main/inc/ajax/admin.ajax.php +++ b/main/inc/ajax/admin.ajax.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 diff --git a/main/install/configuration.dist.php b/main/install/configuration.dist.php index 4210604422..8680bbca9c 100755 --- a/main/install/configuration.dist.php +++ b/main/install/configuration.dist.php @@ -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';