Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-02-16 06:55:50 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-02-16 06:58:03 +0300
commiteef987343a3048fec68984e6af42f851e8700c2d (patch)
tree1bf61eedaa6a443b5d19017a6788bc8ca3cad9cf /core/Plugin.php
parent33b882cf297abbf050a7b9b72d98b8a7be5593a8 (diff)
Renamed variable
Diffstat (limited to 'core/Plugin.php')
-rw-r--r--core/Plugin.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/Plugin.php b/core/Plugin.php
index fdef9f5dc8..7f33591dc9 100644
--- a/core/Plugin.php
+++ b/core/Plugin.php
@@ -325,9 +325,9 @@ class Plugin
$componentFile = sprintf('%s/plugins/%s/%s.php', PIWIK_INCLUDE_PATH, $this->pluginName, $componentName);
if ($this->cache->contains($cacheId)) {
- $klassName = $this->cache->fetch($cacheId);
+ $classname = $this->cache->fetch($cacheId);
- if (empty($klassName)) {
+ if (empty($classname)) {
return; // might by "false" in case has no menu, widget, ...
}
@@ -344,22 +344,22 @@ class Plugin
require_once $componentFile;
- $klassName = sprintf('Piwik\\Plugins\\%s\\%s', $this->pluginName, $componentName);
+ $classname = sprintf('Piwik\\Plugins\\%s\\%s', $this->pluginName, $componentName);
- if (!class_exists($klassName)) {
+ if (!class_exists($classname)) {
return;
}
- if (!empty($expectedSubclass) && !is_subclass_of($klassName, $expectedSubclass)) {
+ if (!empty($expectedSubclass) && !is_subclass_of($classname, $expectedSubclass)) {
Log::warning(sprintf('Cannot use component %s for plugin %s, class %s does not extend %s',
- $componentName, $this->pluginName, $klassName, $expectedSubclass));
+ $componentName, $this->pluginName, $classname, $expectedSubclass));
return;
}
- $this->cache->save($cacheId, $klassName);
+ $this->cache->save($cacheId, $classname);
}
- return new $klassName;
+ return new $classname;
}
public function findMultipleComponents($directoryWithinPlugin, $expectedSubclass)