diff options
author | Steve Clay <steve@mrclay.org> | 2012-11-26 17:31:53 -0500 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2012-11-26 17:31:53 -0500 |
commit | 937119200300ebc2b09df4354fb7cd547535ecfb (patch) | |
tree | 8d8ff330083b3321389ebf13688ff347cac3f290 /engine/classes/ElggPlugin.php | |
parent | e83db6a59a42902e4d6e112dda4ced4a749b6d39 (diff) | |
download | elgg-937119200300ebc2b09df4354fb7cd547535ecfb.tar.gz elgg-937119200300ebc2b09df4354fb7cd547535ecfb.tar.bz2 |
Refs #4933: cache in plugin constructor, remove $CONFIG
Diffstat (limited to 'engine/classes/ElggPlugin.php')
-rw-r--r-- | engine/classes/ElggPlugin.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engine/classes/ElggPlugin.php b/engine/classes/ElggPlugin.php index 3e43c8e81..c6ce2905f 100644 --- a/engine/classes/ElggPlugin.php +++ b/engine/classes/ElggPlugin.php @@ -36,8 +36,9 @@ class ElggPlugin extends ElggObject { * @warning Unlike other ElggEntity objects, you cannot null instantiate * ElggPlugin. You must point it to an actual plugin GUID or location. * - * @param mixed $plugin The GUID of the ElggPlugin object or the path of - * the plugin to load. + * @param mixed $plugin The GUID of the ElggPlugin object or the path of the plugin to load. + * + * @throws PluginException */ public function __construct($plugin) { if (!$plugin) { @@ -76,6 +77,8 @@ class ElggPlugin extends ElggObject { // load the rest of the plugin parent::__construct($existing_guid); } + + _elgg_cache_plugin_by_id($this); } /** |