Skip to content

Commit

Permalink
Merge pull request #3014 from hensur/stylesheet-fix
Browse files Browse the repository at this point in the history
Don't check stylesheet with Binput
  • Loading branch information
jbrooksuk committed Apr 23, 2018
2 parents 5a0a10a + cf6d6ad commit b852d87
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/Http/Controllers/Dashboard/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,14 @@ public function postSettings()
}
}

if (isset($parameters['stylesheet'])) {
if ($stylesheet = Binput::get('stylesheet', null, false, false)) {
$setting->set('stylesheet', $stylesheet);
} else {
$setting->delete('stylesheet');
}
}

if (Binput::hasFile('app_banner')) {
$this->handleUpdateBanner($setting);
}
Expand All @@ -367,6 +375,7 @@ public function postSettings()
'remove_banner',
'header',
'footer',
'stylesheet',
];

try {
Expand Down

0 comments on commit b852d87

Please sign in to comment.