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 'core/EventDispatcher.php')
-rw-r--r--core/EventDispatcher.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/EventDispatcher.php b/core/EventDispatcher.php
index 9b4af816da..9a07801d22 100644
--- a/core/EventDispatcher.php
+++ b/core/EventDispatcher.php
@@ -140,7 +140,13 @@ class EventDispatcher extends Singleton
*/
public function clearAllObservers()
{
- $this->extraObservers = array();
+ foreach ($this->extraObservers as $eventName => $eventObservers) {
+ if (strpos($eventName, 'Log.format') === 0) {
+ continue;
+ }
+
+ $this->extraObservers[$eventName] = array();
+ }
}
/**