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:
authormatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2010-03-29 18:54:22 +0400
committermatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2010-03-29 18:54:22 +0400
commitf10463f8ad12e0fbe6790eb7ba3d89dd589fcd23 (patch)
tree6552393012d6816ac79d505fc6d5d40918f503a2 /plugins/ExampleUI
parentec89182dcfc3c7e4be1b63f42f46d432efd083bb (diff)
I forgot to commit this earlier
Diffstat (limited to 'plugins/ExampleUI')
-rw-r--r--plugins/ExampleUI/API.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ExampleUI/API.php b/plugins/ExampleUI/API.php
index 8255c1deff..8d741a8c2b 100644
--- a/plugins/ExampleUI/API.php
+++ b/plugins/ExampleUI/API.php
@@ -29,8 +29,8 @@ class Piwik_ExampleUI_API
public function getTemperaturesEvolution($date, $period)
{
$period = new Piwik_Period_Range($period, 'last30');
- $dateStart = $period->getDateStart()->get('Y-m-d'); // eg. "2009-04-01"
- $dateEnd = $period->getDateEnd()->get('Y-m-d'); // eg. "2009-04-30"
+ $dateStart = $period->getDateStart()->toString('Y-m-d'); // eg. "2009-04-01"
+ $dateEnd = $period->getDateEnd()->toString('Y-m-d'); // eg. "2009-04-30"
// here you could select from your custom table in the database, eg.
$query = "SELECT AVG(temperature)