aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/1.154_recalculate_score.php
diff options
context:
space:
mode:
authorPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
committerPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
commit4459dd7917f4d1c34f40bb68f0e991e9c3d53e4c (patch)
tree5c07151ae61276d334e88f6309c30d439a85c12e /db/migrations/1.154_recalculate_score.php
parentda0022e5c1abbf9825ae76debaabdff7e8623bb4 (diff)
parent97a188592c679890a25c37ab78463add76a52ff7 (diff)
Merge branch 'main' into issue-3911issue-3911
Diffstat (limited to 'db/migrations/1.154_recalculate_score.php')
-rw-r--r--db/migrations/1.154_recalculate_score.php5
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 {
}
}
-