dont use the entire url as option

This commit is contained in:
Tobias Diekershoff 2017-11-06 18:05:42 +01:00
parent 1f9b52f2bf
commit 143e7fc6b7
2 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@ function checkversion_run () {
if ($checkurl == 'none' ) {
return;
}
$gitversion = dbesc(trim(fetch_url($checkurl)));
$gitversion = dbesc(trim(fetch_url("https://raw.githubusercontent.com/friendica/friendica/".$checkurl."/VERSION")));
Config::set('system', 'git_friendica_version', $gitversion);
logger('checkversion: end');

View file

@ -1149,8 +1149,8 @@ function admin_page_site(App $a) {
$check_git_version_choices = array(
"none" => t("Don't check"),
"https://raw.githubusercontent.com/friendica/friendica/master/VERSION" => t("check the stable version"),
"https://raw.githubusercontent.com/friendica/friendica/develop/VERSION" => t("check the development version")
"master" => t("check the stable version"),
"develop" => t("check the development version")
);
if ($a->config['hostname'] == "") {