diff options
author | sgiehl <stefan@piwik.org> | 2013-08-11 22:20:44 +0400 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2013-08-11 22:20:44 +0400 |
commit | 2e8c72c8de7039f255a43e93bbcc0b78ddcef253 (patch) | |
tree | 3b10d4516fe3a686459ad2b9ab17c9f821c4de3c /plugins/ImageGraph/API.php | |
parent | d293408450bc8b0c0f79934da6a43914626935ae (diff) |
fixed namespaces
Diffstat (limited to 'plugins/ImageGraph/API.php')
-rw-r--r-- | plugins/ImageGraph/API.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/ImageGraph/API.php b/plugins/ImageGraph/API.php index 64e4fb311f..ea4b88b392 100644 --- a/plugins/ImageGraph/API.php +++ b/plugins/ImageGraph/API.php @@ -10,6 +10,7 @@ */ namespace Piwik\Plugins\ImageGraph; +use Exception; use Piwik\Period; use Piwik\Piwik; use Piwik\Common; @@ -145,7 +146,7 @@ class API // Health check - should we also test for GD2 only? if (!Piwik::isGdExtensionEnabled()) { - throw new \Exception('Error: To create graphs in Piwik, please enable GD php extension (with Freetype support) in php.ini, + throw new Exception('Error: To create graphs in Piwik, please enable GD php extension (with Freetype support) in php.ini, and restart your web server.'); } @@ -317,7 +318,7 @@ class API //@review this test will need to be updated after evaluating the @review comment in API/API.php if (!$processedReport) { - throw new \Exception(Piwik_Translate('General_NoDataForGraph_js')); + throw new Exception(Piwik_Translate('General_NoDataForGraph_js')); } // restoring generic filter parameters @@ -455,7 +456,7 @@ class API } if (!$hasData || !$hasNonZeroValue) { - throw new \Exception(Piwik_Translate('General_NoDataForGraph_js')); + throw new Exception(Piwik_Translate('General_NoDataForGraph_js')); } //Setup the graph |