Skip to content

Commit

Permalink
Backport stylesheet fix cachethq#3014 to 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hensur committed Apr 18, 2018
1 parent 0c72e5e commit 58a212c
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 @@ -274,6 +274,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 @@ -284,6 +292,7 @@ public function postSettings()
'remove_banner',
'header',
'footer',
'stylesheet',
];

try {
Expand Down

0 comments on commit 58a212c

Please sign in to comment.