This commit is contained in:
James Brooks 2016-03-31 18:33:39 +01:00
parent 6a466d2c9c
commit 309c6d345b

View File

@ -225,6 +225,14 @@ class SettingsController extends Controller
$setting->set('app_banner', null);
}
if ($header = Binput::get('header', null, false, false)) {
$setting->set('header', $header);
}
if ($footer = Binput::get('footer', null, false, false)) {
$setting->set('footer', $footer);
}
if (Binput::hasFile('app_banner')) {
$file = Binput::file('app_banner');
@ -251,8 +259,16 @@ class SettingsController extends Controller
$setting->set('app_banner_type', $file->getMimeType());
}
$excludedParams = [
'_token',
'app_banner',
'remove_banner',
'header',
'footer',
];
try {
foreach (Binput::except(['app_banner', 'remove_banner', '_token']) as $settingName => $settingValue) {
foreach (Binput::except($excludedParams) as $settingName => $settingValue) {
if ($settingName === 'app_analytics_pi_url') {
$settingValue = rtrim($settingValue, '/');
}