Dotclear

Ticket #1831 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

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:1 Changed 10 years ago by Dsls

  • Status changed from new to closed
  • Resolution set to fixed

(In [1e1c8be8d43d]) Made settings date_formats, time_formats, store_plugin_url, store_theme_url global, fixes #1831

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 ?

comment:3 Changed 10 years ago by bruno

L'update ne passe pas par admin/install, seule une installation fraîche passe par là :)

comment:4 Changed 10 years ago by JcDenis

Oups, je ne suis pas encore bien réveillé.

Note: See TracTickets for help on using tickets.

Sites map