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/Annotations/Controller.php')
-rwxr-xr-xplugins/Annotations/Controller.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/plugins/Annotations/Controller.php b/plugins/Annotations/Controller.php
index 739ec5deeb..00a927fe6d 100755
--- a/plugins/Annotations/Controller.php
+++ b/plugins/Annotations/Controller.php
@@ -6,19 +6,22 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @category Piwik_Plugins
- * @package Piwik_Annotations
+ * @package Annotations
*/
+namespace Piwik\Plugins\Annotations;
+
use Piwik\API\Request;
use Piwik\Common;
-use Piwik\Controller;
+use Piwik\Plugins\Annotations\AnnotationList;
+use Piwik\Plugins\Annotations\API;
use Piwik\View;
/**
* Controller for the Annotations plugin.
*
- * @package Piwik_Annotations
+ * @package Annotations
*/
-class Piwik_Annotations_Controller extends Controller
+class Controller extends \Piwik\Controller
{
/**
* Controller action that returns HTML displaying annotations for a site and
@@ -68,7 +71,7 @@ class Piwik_Annotations_Controller extends Controller
$view->period = $period;
$view->lastN = $lastN;
- list($startDate, $endDate) = Piwik_Annotations_API::getDateRangeForPeriod($date, $period, $lastN);
+ list($startDate, $endDate) = API::getDateRangeForPeriod($date, $period, $lastN);
$view->startDate = $startDate->toString();
$view->endDate = $endDate->toString();
@@ -76,7 +79,7 @@ class Piwik_Annotations_Controller extends Controller
$view->startDatePretty = $startDate->getLocalized($dateFormat);
$view->endDatePretty = $endDate->getLocalized($dateFormat);
- $view->canUserAddNotes = Piwik_Annotations_AnnotationList::canUserAddNotesFor($idSite);
+ $view->canUserAddNotes = AnnotationList::canUserAddNotesFor($idSite);
if ($fetch) {
return $view->render();