From 34c237ce8e8b05cf779bd66b4789c96fab3f3535 Mon Sep 17 00:00:00 2001 From: Jonathan Labreuille Date: Thu, 15 Oct 2015 14:22:27 +0200 Subject: [PATCH] Load/Save settings - renamed all settings with dot syntax - refactored Menu->settings() - changed schema of settings table to allow longer setting name and value - added getAll() static method on Setting Model to fetch all settings (with proper unserialize of value) --- assets/js/src/form/fields/selection.jsx | 2 +- lib/Config/Menu.php | 56 +++------------ lib/Config/Migrator.php | 4 +- lib/Models/Setting.php | 21 +++++- lib/Router/Permissions.php | 14 ++++ lib/Router/Settings.php | 28 ++++---- lib/Settings/Pages.php | 23 +++++++ lib/Util/Charsets.php | 15 +++++ lib/{Settings => Util}/Permissions.php | 45 +++++++------ views/settings.html | 83 +++++++++-------------- views/settings/advanced.html | 29 ++++---- views/settings/basics.html | 76 +++++++++++---------- views/settings/mta.html | 90 +++++++++++++------------ views/settings/signup.html | 40 +++++------ 14 files changed, 282 insertions(+), 244 deletions(-) create mode 100644 lib/Router/Permissions.php create mode 100644 lib/Settings/Pages.php create mode 100644 lib/Util/Charsets.php rename lib/{Settings => Util}/Permissions.php (72%) diff --git a/assets/js/src/form/fields/selection.jsx b/assets/js/src/form/fields/selection.jsx index cf8d127ec5..95f112cc76 100644 --- a/assets/js/src/form/fields/selection.jsx +++ b/assets/js/src/form/fields/selection.jsx @@ -51,7 +51,7 @@ function( return (

@@ -80,9 +80,9 @@