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:
Diffstat (limited to 'plugins/ImageGraph/StaticGraph.php')
-rw-r--r--plugins/ImageGraph/StaticGraph.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/ImageGraph/StaticGraph.php b/plugins/ImageGraph/StaticGraph.php
index 4fe0523e2a..85778163e0 100644
--- a/plugins/ImageGraph/StaticGraph.php
+++ b/plugins/ImageGraph/StaticGraph.php
@@ -9,6 +9,8 @@
* @package Piwik_ImageGraph
*/
+use Piwik\Loader;
+
require_once PIWIK_INCLUDE_PATH . "/libs/pChart2.1.3/class/pDraw.class.php";
require_once PIWIK_INCLUDE_PATH . "/libs/pChart2.1.3/class/pImage.class.php";
require_once PIWIK_INCLUDE_PATH . "/libs/pChart2.1.3/class/pData.class.php";
@@ -77,7 +79,7 @@ abstract class Piwik_ImageGraph_StaticGraph
if (isset(self::$availableStaticGraphTypes[$graphType])) {
$className = self::$availableStaticGraphTypes[$graphType];
- Piwik_Loader::loadClass($className);
+ Loader::loadClass($className);
return new $className;
} else {
throw new Exception(
@@ -108,7 +110,7 @@ abstract class Piwik_ImageGraph_StaticGraph
}
/**
- * @return rendered static graph
+ * @return Image rendered static graph
*/
public function getRenderedImage()
{