[geeklog-cvs] geeklog: Re-read configuration during plugin install to ensure p...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Jun 27 13:29:29 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/4c2dd05c2fd3
changeset: 7148:4c2dd05c2fd3
user: Dirk Haun <dirk at haun-online.de>
date: Sat Jun 27 18:51:07 2009 +0200
description:
Re-read configuration during plugin install to ensure plugin configs are available
diffstat:
public_html/admin/install/lib-install.php | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r 4c12395cf528 -r 4c2dd05c2fd3 public_html/admin/install/lib-install.php
--- a/public_html/admin/install/lib-install.php Sat Jun 27 17:51:50 2009 +0200
+++ b/public_html/admin/install/lib-install.php Sat Jun 27 18:51:07 2009 +0200
@@ -893,6 +893,10 @@
return false;
}
+
+ require_once $_CONF['path'] . 'system/classes/config.class.php';
+ $config =& config::get_instance();
+ $config->initConfig(); // force re-reading, including new plugin conf
}
// Finally, register the plugin with Geeklog
More information about the geeklog-cvs
mailing list