diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-23 08:54:39 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-23 08:54:39 +0400 |
commit | 03dd1ed5e56691511b4eb60093a166bcdd47a4be (patch) | |
tree | ae7389300660623a1a1dcc7e0cda92d7599df9bd /core/Plugin.php | |
parent | 39504b1e82e550ee5fe8576bc6f3eeb2c5b220c9 (diff) |
this improves tracking performance on my test machine from on average 450ms to 350ms
Diffstat (limited to 'core/Plugin.php')
-rw-r--r-- | core/Plugin.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Plugin.php b/core/Plugin.php index e938a9a1fe..a706469573 100644 --- a/core/Plugin.php +++ b/core/Plugin.php @@ -337,6 +337,8 @@ class Plugin $files = Filesystem::globr(PIWIK_INCLUDE_PATH . '/plugins/' . $this->pluginName .'/' . $directoryWithinPlugin, '*.php'); foreach ($files as $file) { + require_once $file; + $klassName = sprintf('Piwik\\Plugins\\%s\\%s\\%s', $this->pluginName, $directoryWithinPlugin, basename($file, '.php')); if (!class_exists($klassName)) { |