Ticket #1831 (closed defect: fixed)
Settings not defined globally at install => errors
Reported by: | bruno | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 2.6 |
Component: | module:core | Version: | 2.5 |
Severity: | normal | Keywords: | |
Cc: |
Description
Some settings are not set globally when installing a fresh dotclear, whereas they are global when upgrading it : date_formats, time_formats, and maybe the dotclear store ones.
Therefore, creating a new blog on a fresh install will lead to errors and display some empty fields for date/time formats :
Warning: Invalid argument supplied for foreach() in \dc2pg\admin\blog_pref.php on line 72 Warning: Invalid argument supplied for foreach() in \dc2pg\admin\blog_pref.php on line 76
Change History
comment:2 Changed 10 years ago by JcDenis
Heu j'aurais plutôt fait un ->put(....,false,true); car à l'update tu écrases les valeurs existante (et peut-être modifié) là non ?
Note: See
TracTickets for help on using
tickets.
(In [1e1c8be8d43d]) Made settings date_formats, time_formats, store_plugin_url, store_theme_url global, fixes #1831