mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-20 10:14:33 -04:00
Simplify shortcut setter
This commit is contained in:
1 parent
f3d74b59e8
commit
409e09f685
1 file changed
+4
-2
@@ -153,9 +153,11 @@ class FreshRSS_ConfigurationSetter {
|
||||
}
|
||||
|
||||
private function _shortcuts(&$data, $values) {
|
||||
foreach ($values as $key => $value) {
|
||||
$data['shortcuts'][$key] = $value;
|
||||
if (!is_array($values)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$data['shortcuts'] = $values;
|
||||
}
|
||||
|
||||
private function _sort_order(&$data, $value) {
|
||||
|
||||
Reference in new issue
Block a user