4 * @file include/checkversion.php
6 * @brief save Friendica upstream version to the DB
9 use Friendica\Core\Config;
12 * @brief check the git repository VERSION file and save the version to the DB
14 * Checking the upstream version is optional (opt-in) and can be done to either
15 * the master or the develop branch in the repository.
17 function checkversion_run () {
20 logger('checkversion: start');
22 $checkurl = Config::get('system', 'check_new_version_url', 'none');
24 // check for new versions at all?
25 if ($checkurl == 'none' ) {
28 $gitversion = dbesc(trim(fetch_url($checkurl)));
29 Config::set('system', 'git_friendica_version', $gitversion);
31 logger('checkversion: end');