Move telemetry option into settings; checkbox in install refs #415 (#416)

This commit is contained in:
Nabeel S
2019-10-29 13:07:53 -04:00
committed by GitHub
parent a2ea9b29ba
commit ae68550448
7 changed files with 76 additions and 38 deletions

View File

@@ -43,7 +43,7 @@ if (!function_exists('get_truth_state')) {
$state = strtolower($state);
}
return \in_array($state, $enabledStates, false);
return in_array($state, $enabledStates, false);
}
}
@@ -148,6 +148,18 @@ if (!function_exists('setting')) {
}
}
/*
* Shortcut for retrieving a setting value
*/
if (!function_exists('setting_save')) {
function setting_save($key, $value)
{
$settingRepo = app('setting');
$settingRepo->save($key, $value);
return $value;
}
}
/*
* Wrap the asset URL in the publicBaseUrl that's been
* set