diff options
Diffstat (limited to 'db/migrations/1.154_recalculate_score.php')
| -rw-r--r-- | db/migrations/1.154_recalculate_score.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/db/migrations/1.154_recalculate_score.php b/db/migrations/1.154_recalculate_score.php index 158582e..9391e7d 100644 --- a/db/migrations/1.154_recalculate_score.php +++ b/db/migrations/1.154_recalculate_score.php @@ -38,7 +38,7 @@ class RecalculateScore extends Migration { private static function getScore($user_id) { $user_id || $user_id = $GLOBALS['user']->id; - $cache = StudipCacheFactory::getCache(); + $cache = \Studip\Cache\Factory::getCache(); if ($cache->read("user_score_of_".$user_id)) { return $cache->read("user_score_of_".$user_id); } @@ -130,7 +130,7 @@ class RecalculateScore extends Migration { 'date_column' => "chdate" ]; - foreach (PluginManager::getInstance()->getPlugins("ScorePlugin") as $plugin) { + foreach (PluginManager::getInstance()->getPlugins(ScorePlugin::class) as $plugin) { foreach ((array) $plugin->getPluginActivityTables() as $table) { if ($table['table']) { $tables[] = $table; @@ -142,4 +142,3 @@ class RecalculateScore extends Migration { } } - |
