Commit graph

6 commits

Author SHA1 Message Date
Peter Goodhall
e34afd51eb Allow partial option saves and surface save errors
Change success logic in Options controller to treat the save as successful if any individual option update persisted (use OR instead of AND), preventing a single-failure from marking the whole operation as failed. Fix Options_model to return TRUE after inserting a new option so inserts are reported as successful. Add a saveFailed flash message display in the email options view so users see explicit failure alerts when appropriate.
2026-04-26 18:04:58 +01:00
Peter Goodhall
7b0862e7be [Global Options] Added Email settings
Added email settings under global options to select whether its using smtp or sendmail on the server.
2022-01-19 14:26:36 +00:00
Andreas
1b2a88b355 Removed all constructors in models, since this doesn't work in never CodeIgniter 2021-11-06 20:24:28 +01:00
Andreas
4e5144066e [PHP8] Fixes for some errors that PHP8 puts out. Fixes #882 2021-07-20 15:07:55 +02:00
Peter Goodhall
a012d73df2 [Options] Adds new Save & Update funcs to OptionsLib, Creates /options with the abilty to change the theme globally 2020-12-13 16:55:10 +00:00
Peter Goodhall
8dfaf47c79 [Options] Greates OptionsLib library, sets default theme and others
This commit does a couple of things

- Creates OptionsLib which stores the 'Options' within the CI config system prefixed with "options_"
- Loads the OptionsLib automatically
- Adds function to OptionsLib for selecting the active stylesheet.
- Adds function to get an option_value that isn't automatically loaded.
2020-12-12 22:03:42 +00:00