From fb3711c999d48c718cd118d98018a78960fa36f2 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 20 Dec 2014 18:35:25 +0000 Subject: [PATCH] Strip # has from setting values in the theme --- app/controllers/DashboardController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/DashboardController.php b/app/controllers/DashboardController.php index 1f9a1875..b6972bfc 100644 --- a/app/controllers/DashboardController.php +++ b/app/controllers/DashboardController.php @@ -130,6 +130,10 @@ class DashboardController extends Controller { continue; } + if (strstr($settingName, 'style_')) { + $settingValue = str_replace('#', '', $settingValue); + } + $setting = Setting::firstOrCreate([ 'name' => $settingName, ])->update([