mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
Fixes #1677
This commit is contained in:
parent
6a466d2c9c
commit
309c6d345b
@ -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, '/');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user