aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/quickselection.php
diff options
context:
space:
mode:
authorElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2023-11-09 11:56:24 +0000
committerElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2023-11-09 11:56:24 +0000
commit5f3c368899f5e2a7419728ecf1d017f4a37d3af0 (patch)
tree9f632773f37dd116951925a25355d8b541cbb749 /app/controllers/quickselection.php
parentf388d0d7958b62687b4ac4c80b9751c3d0c04b50 (diff)
switch widget code to SORM, fixes #3094
Closes #3094 Merge request studip/studip!2084
Diffstat (limited to 'app/controllers/quickselection.php')
-rw-r--r--app/controllers/quickselection.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/quickselection.php b/app/controllers/quickselection.php
index 88d24f0..1899e53 100644
--- a/app/controllers/quickselection.php
+++ b/app/controllers/quickselection.php
@@ -25,7 +25,7 @@ class QuickselectionController extends AuthenticatedController
}
- WidgetHelper::addWidgetUserConfig($GLOBALS['user']->id, 'QUICK_SELECTION', $names);
+ UserConfig::get($GLOBALS['user']->id)->store('QUICK_SELECTION', $names);
$template = PluginEngine::getPlugin('QuickSelection')->getPortalTemplate();
@@ -38,7 +38,7 @@ class QuickselectionController extends AuthenticatedController
public function configuration_action()
{
$this->links = Navigation::getItem('/start');
- $this->config = WidgetHelper::getWidgetUserConfig($GLOBALS['user']->id, 'QUICK_SELECTION');
+ $this->config = UserConfig::get($GLOBALS['user']->id)->getValue('QUICK_SELECTION');
PageLayout::setTitle(_('Schnellzugriff konfigurieren'));
}