diff options
author | Kevin Chabowski <kevin@kch42.de> | 2011-12-27 00:05:49 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2011-12-27 00:05:49 +0100 |
commit | cb172742c78517baf6a79b52f980b0b9dcb81274 (patch) | |
tree | d06f730060fa71645ee6f2fdec5ae4dcde1fae94 /ratatoeskr/main.php | |
parent | 722a900eaaeb6204ef180e7095fc0a30a48b4d4a (diff) | |
download | ratatoeskr-cms-cb172742c78517baf6a79b52f980b0b9dcb81274.tar.gz ratatoeskr-cms-cb172742c78517baf6a79b52f980b0b9dcb81274.tar.bz2 ratatoeskr-cms-cb172742c78517baf6a79b52f980b0b9dcb81274.zip |
Rewritten Settings class and added atexit() to plugin API.
Settings now does not load/save values automatically any more (to save
SQL queries). Settings will be loaded at startup and saved at the end.
There is also only one instance possible now (singleton).
Diffstat (limited to 'ratatoeskr/main.php')
-rw-r--r-- | ratatoeskr/main.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ratatoeskr/main.php b/ratatoeskr/main.php index 9d963ac..aa36201 100644 --- a/ratatoeskr/main.php +++ b/ratatoeskr/main.php @@ -71,6 +71,11 @@ function ratatoeskr() $ste->vars["rel_path_to_root"] = $rel_path_to_root; url_process($urlpath, $url_handlers, $data); + + foreach($plugin_objs as $plugin_obj) + $plugin_obj->atexit(); + $ratatoeskr_settings->save(); + echo "<!-- Queries: $queries_fired Time: " . (microtime(True) - $ts_start) . " |