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:
authorThomas Steur <thomas.steur@gmail.com>2013-09-20 06:48:02 +0400
committerThomas Steur <thomas.steur@gmail.com>2013-09-20 06:52:50 +0400
commit6cd07963976102139db0de2b5faf78a4d427edcf (patch)
treeca1a14e1b4f9a9942b50bc48cb33bf33b41c35a3 /core/ScheduledTask.php
parent6f5cb36acc27aa61420c3905b852165307c1a22f (diff)
cache marketplace requests only for 20minutes, clear cache entries once a day
Diffstat (limited to 'core/ScheduledTask.php')
-rw-r--r--core/ScheduledTask.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/ScheduledTask.php b/core/ScheduledTask.php
index 5262e7cbc3..d2349329de 100644
--- a/core/ScheduledTask.php
+++ b/core/ScheduledTask.php
@@ -81,6 +81,10 @@ class ScheduledTask
protected function getClassNameFromInstance($_objectInstance)
{
+ if (is_string($_objectInstance)) {
+ return $_objectInstance
+ }
+
$namespaced = get_class($_objectInstance);
$class = explode('\\', $namespaced);
return end($class);