mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-18 05:58:18 +01:00
Cleanup the dash settings controller
This commit is contained in:
parent
843268e645
commit
be078cc2e8
@ -127,7 +127,7 @@ class DashSettingsController extends Controller
|
||||
$maxSize = $file->getMaxFilesize();
|
||||
|
||||
if ($file->getSize() > $maxSize) {
|
||||
return Redirect::back()->withErrorMessage('You need to upload an image that is less than '.$maxSize.'.');
|
||||
return Redirect::back()->withErrorMessage("You need to upload an image that is less than $maxSize.");
|
||||
}
|
||||
|
||||
if (!$file->isValid() || $file->getError()) {
|
||||
@ -155,7 +155,7 @@ class DashSettingsController extends Controller
|
||||
|
||||
try {
|
||||
foreach (Input::except(['app_banner', 'remove_banner']) as $settingName => $settingValue) {
|
||||
$setting = Setting::firstOrCreate([
|
||||
Setting::firstOrCreate([
|
||||
'name' => $settingName,
|
||||
])->update([
|
||||
'value' => $settingValue,
|
||||
|
Loading…
x
Reference in New Issue
Block a user