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
path: root/libs
diff options
context:
space:
mode:
authormatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-03-27 08:53:48 +0300
committermatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-03-27 08:53:48 +0300
commitbc89b5ec03cf3833a41560110b0e433f93232c22 (patch)
tree2f43f6a73739276380399ec8ed2b0eb40fdf2fb6 /libs
parentcd91ede1a0455b07039df0295a52f94924fdf204 (diff)
- memory and speed optimizations of archiving, refs #374 (hopefully fixing it but not sure yet)
- added support for profiling memory & time in Piwik via the events mechanism - small other changes
Diffstat (limited to 'libs')
-rwxr-xr-xlibs/Event/Dispatcher.php5
-rwxr-xr-xlibs/Event/Notification.php1
2 files changed, 3 insertions, 3 deletions
diff --git a/libs/Event/Dispatcher.php b/libs/Event/Dispatcher.php
index fe64305875..6e6a72eb21 100755
--- a/libs/Event/Dispatcher.php
+++ b/libs/Event/Dispatcher.php
@@ -278,7 +278,9 @@ class Event_Dispatcher
if (empty($rObserver['class']) ||
strcasecmp($rObserver['class'], $objClass) == 0) {
call_user_func_array($rObserver['callback'], array(&$notification));
- $notification->increaseNotificationCount();
+ //-- Piwik Hack --//
+ $notification->increaseNotificationCount(get_class($rObserver['callback'][0]), $rObserver['callback'][1]);
+ //-- End Piwik Hack --//
}
}
}
@@ -475,4 +477,3 @@ class Event_Dispatcher
}
}
-?>
diff --git a/libs/Event/Notification.php b/libs/Event/Notification.php
index 58d08fa4cf..1ce2ccde8d 100755
--- a/libs/Event/Notification.php
+++ b/libs/Event/Notification.php
@@ -191,4 +191,3 @@ class Event_Notification
return ($this->_notificationState === EVENT_NOTIFICATION_STATE_CANCELLED);
}
}
-?>