Commit 9c28d1e7e6d1d0755af9bee71b90b4ac321f445c
1 parent
a25abb5a
Automatically call the register method on all registered plugins during
loadPlugins() git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4377 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
6 additions
and
0 deletions
lib/plugins/pluginutil.inc.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +require_once(KT_LIB_DIR . '/plugins/pluginregistry.inc.php'); | |
| 4 | + | |
| 3 | 5 | class KTPluginResourceRegistry { |
| 4 | 6 | var $aResources = array(); |
| 5 | 7 | |
| ... | ... | @@ -36,6 +38,10 @@ class KTPluginUtil { |
| 36 | 38 | require_once($sFile); |
| 37 | 39 | } |
| 38 | 40 | } |
| 41 | + $oRegistry = KTPluginRegistry::getSingleton(); | |
| 42 | + foreach ($oRegistry->getPlugins() as $oPlugin) { | |
| 43 | + $oPlugin->register(); | |
| 44 | + } | |
| 39 | 45 | } |
| 40 | 46 | |
| 41 | 47 | function _walk ($path, &$files) { | ... | ... |