[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/17c6fd509397
changeset: 7149:17c6fd509397
user:      Dirk Haun <dirk at haun-online.de>
date:      Sat Jun 27 19:03:35 2009 +0200
description:
Re-read configuration during plugin install to ensure plugin configs are available

diffstat:

 public_html/admin/plugins.php |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 4c2dd05c2fd3 -r 17c6fd509397 public_html/admin/plugins.php
--- a/public_html/admin/plugins.php	Sat Jun 27 18:51:07 2009 +0200
+++ b/public_html/admin/plugins.php	Sat Jun 27 19:03:35 2009 +0200
@@ -1073,6 +1073,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