dont use the entire url as option
This commit is contained in:
parent
1f9b52f2bf
commit
143e7fc6b7
|
@ -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');
|
||||
|
|
|
@ -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'] == "") {
|
||||
|
|
Loading…
Reference in New Issue
Block a user