[geeklog-cvs] geeklog: Load a plugin's functions.inc after successful autoinst...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun May 17 11:35:16 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/99d594b20bc0
changeset: 7034:99d594b20bc0
user: Dirk Haun <dirk at haun-online.de>
date: Sun May 17 17:13:16 2009 +0200
description:
Load a plugin's functions.inc after successful autoinstall (for any plugins monitoring PLG_pluginStateChange, e.g. XMLSitemap)
diffstat:
1 file changed, 4 insertions(+)
public_html/admin/plugins.php | 4 ++++
diffs (14 lines):
diff -r 9089a0c77860 -r 99d594b20bc0 public_html/admin/plugins.php
--- a/public_html/admin/plugins.php Sun May 17 16:30:39 2009 +0200
+++ b/public_html/admin/plugins.php Sun May 17 17:13:16 2009 +0200
@@ -1108,6 +1108,10 @@
COM_errorLog("Successfully installed the '$plugin' plugin!", 1);
}
+ // load plugin here already, for any plugins wanting to act on
+ // PLG_pluginStateChange($plugin, 'installed') when we return from here
+ require_once $_CONF['path'] . 'plugins/' . $plugin . '/functions.inc';
+
return true;
}
More information about the geeklog-cvs
mailing list