Passed
Pull Request — master (#2)
by Michael
07:10 queued 03:28
created
blocks/songlist_popular_albums.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     xoops_loadLanguage('blocks', 'songlist');
12 12
     $handler = Helper::getInstance()->getHandler('Albums');
13 13
     $objects = $handler->getTop($options[0]);
14
-    if (count($objects) > 0) {
14
+    if (count($objects)>0) {
15 15
         $ret = [];
16 16
         foreach ($objects as $id => $object) {
17 17
             $ret[$id] = $object->toArray(true);
@@ -33,5 +33,5 @@  discard block
 block discarded – undo
33 33
     xoops_loadLanguage('blocks', 'songlist');
34 34
     $num = new \XoopsformText('', 'options[0]', 10, 10, $options[0]);
35 35
 
36
-    return _BL_SONGLIST_NUMBEROFITEMS . $num->render();
36
+    return _BL_SONGLIST_NUMBEROFITEMS.$num->render();
37 37
 }
Please login to merge, or discard this patch.
blocks/songlist_popular_genres.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     xoops_loadLanguage('blocks', 'songlist');
12 12
     $handler = Helper::getInstance()->getHandler('Genre');
13 13
     $objects = $handler->getTop($options[0]);
14
-    if (count($objects) > 0) {
14
+    if (count($objects)>0) {
15 15
         $ret = [];
16 16
         foreach ($objects as $id => $object) {
17 17
             $ret[$id] = $object->toArray(true);
@@ -33,5 +33,5 @@  discard block
 block discarded – undo
33 33
     xoops_loadLanguage('blocks', 'songlist');
34 34
     $num = new \XoopsformText('', 'options[0]', 10, 10, $options[0]);
35 35
 
36
-    return _BL_SONGLIST_NUMBEROFITEMS . $num->render();
36
+    return _BL_SONGLIST_NUMBEROFITEMS.$num->render();
37 37
 }
Please login to merge, or discard this patch.
blocks/songlist_popular_songs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     xoops_loadLanguage('blocks', 'songlist');
12 12
     $handler = Helper::getInstance()->getHandler('Songs');
13 13
     $objects = $handler->getTop($options[0]);
14
-    if (count($objects) > 0) {
14
+    if (count($objects)>0) {
15 15
         $ret = [];
16 16
         foreach ($objects as $id => $object) {
17 17
             $ret[$id] = $object->toArray(true);
@@ -33,5 +33,5 @@  discard block
 block discarded – undo
33 33
     xoops_loadLanguage('blocks', 'songlist');
34 34
     $num = new \XoopsformText('', 'options[0]', 10, 10, $options[0]);
35 35
 
36
-    return _BL_SONGLIST_NUMBEROFITEMS . $num->render();
36
+    return _BL_SONGLIST_NUMBEROFITEMS.$num->render();
37 37
 }
Please login to merge, or discard this patch.
blocks/songlist_popular_artists.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     xoops_loadLanguage('blocks', 'songlist');
12 12
     $handler = Helper::getInstance()->getHandler('Artists');
13 13
     $objects = $handler->getTop($options[0]);
14
-    if (count($objects) > 0) {
14
+    if (count($objects)>0) {
15 15
         $ret = [];
16 16
         foreach ($objects as $id => $object) {
17 17
             $ret[$id] = $object->toArray(true); //TODO mb why do we need toArray()?
@@ -33,5 +33,5 @@  discard block
 block discarded – undo
33 33
     xoops_loadLanguage('blocks', 'songlist');
34 34
     $num = new \XoopsformText('', 'options[0]', 10, 10, $options[0]);
35 35
 
36
-    return _BL_SONGLIST_NUMBEROFITEMS . $num->render();
36
+    return _BL_SONGLIST_NUMBEROFITEMS.$num->render();
37 37
 }
Please login to merge, or discard this patch.
artists.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 use XoopsModules\Songlist\CategoryHandler;
5 5
 use XoopsModules\Songlist\ArtistsHandler;
6 6
 
7
-require_once __DIR__ . '/header.php';
7
+require_once __DIR__.'/header.php';
8 8
 
9 9
 global $file, $op, $fct, $id, $value, $gid, $cid, $start, $limit;
10 10
 
@@ -12,12 +12,12 @@  discard block
 block discarded – undo
12 12
 $categoryHandler = Helper::getInstance()->getHandler('Category');
13 13
 $criteria_cat    = new \CriteriaCompo();
14 14
 $cids            = $categoryHandler->GetCatAndSubCat($_SESSION['cid']);
15
-if ($_SESSION['cid'] > 0) {
15
+if ($_SESSION['cid']>0) {
16 16
     $cids[$_SESSION['cid']] = $_SESSION['cid'];
17 17
 }
18
-if (count($cids) > 0 && 0 != $_SESSION['cid']) {
18
+if (count($cids)>0 && 0!=$_SESSION['cid']) {
19 19
     foreach ($cids as $cid) {
20
-        $criteria_cat->add(new \Criteria('`cids`', '%"' . $cid . '"%', 'LIKE'), 'OR');
20
+        $criteria_cat->add(new \Criteria('`cids`', '%"'.$cid.'"%', 'LIKE'), 'OR');
21 21
     }
22 22
 } else {
23 23
     $criteria_cat->add(new \Criteria(''), 'OR');
@@ -36,24 +36,24 @@  discard block
 block discarded – undo
36 36
 $row = 1;
37 37
 foreach ($categories as $category) {
38 38
     $cat[$row][$col]          = $category->toArray(true);
39
-    $cat[$row][$col]['width'] = floor(100 / $GLOBALS['songlistModuleConfig']['cols']) . '%';
39
+    $cat[$row][$col]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%';
40 40
     ++$col;
41
-    if ($col > $GLOBALS['songlistModuleConfig']['cols']) {
41
+    if ($col>$GLOBALS['songlistModuleConfig']['cols']) {
42 42
         ++$row;
43 43
         $col = 1;
44 44
     }
45 45
 }
46
-if (1 != $col) {
46
+if (1!=$col) {
47 47
     $col--;
48
-    for ($j = $col; $j <= $GLOBALS['songlistModuleConfig']['cols']; ++$j) {
48
+    for ($j = $col; $j<=$GLOBALS['songlistModuleConfig']['cols']; ++$j) {
49 49
         $cat[$row][$j][$categoryHandler->keyName] = 0;
50
-        $cat[$row][$j]['width']                   = floor(100 / $GLOBALS['songlistModuleConfig']['cols']) . '%';
50
+        $cat[$row][$j]['width']                   = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%';
51 51
     }
52 52
 }
53 53
 
54 54
 /** @var ArtistsHandler $artistsHandler */
55 55
 $artistsHandler = Helper::getInstance()->getHandler('Artists');
56
-switch ((string)$GLOBALS['op']) {
56
+switch ((string) $GLOBALS['op']) {
57 57
     default:
58 58
     case 'item':
59 59
         switch ($fct) {
@@ -71,41 +71,41 @@  discard block
 block discarded – undo
71 71
                 $row = 1;
72 72
                 foreach ($artists as $artist) {
73 73
                     $ret[$row][$col]          = $artist->toArray(true);
74
-                    $ret[$row][$col]['width'] = floor(100 / $GLOBALS['songlistModuleConfig']['cols']) . '%';
74
+                    $ret[$row][$col]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%';
75 75
                     ++$col;
76
-                    if ($col > $GLOBALS['songlistModuleConfig']['cols']) {
76
+                    if ($col>$GLOBALS['songlistModuleConfig']['cols']) {
77 77
                         ++$row;
78 78
                         $col = 1;
79 79
                     }
80 80
                 }
81
-                if (1 != $col) {
82
-                    for ($j = $col; $j <= $GLOBALS['songlistModuleConfig']['cols']; ++$j) {
81
+                if (1!=$col) {
82
+                    for ($j = $col; $j<=$GLOBALS['songlistModuleConfig']['cols']; ++$j) {
83 83
                         $ret[$row][$j][$artistsHandler->keyName] = 0;
84
-                        $ret[$row][$j]['width']                  = floor(100 / $GLOBALS['songlistModuleConfig']['cols']) . '%';
84
+                        $ret[$row][$j]['width']                  = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%';
85 85
                     }
86 86
                 }
87 87
 
88 88
                 $url = $artistsHandler->getURL(false);
89 89
                 if (!mb_strpos($url, $_SERVER['REQUEST_URI'])) {
90 90
                     header('HTTP/1.1 301 Moved Permanently');
91
-                    header('Location: ' . $url);
91
+                    header('Location: '.$url);
92 92
                     exit(0);
93 93
                 }
94 94
 
95 95
                 $GLOBALS['xoopsOption']['template_main'] = 'songlist_artists_index.tpl';
96 96
                 require $GLOBALS['xoops']->path('/header.php');
97 97
                 if ($GLOBALS['songlistModuleConfig']['force_jquery'] && !isset($GLOBALS['loaded_jquery'])) {
98
-                    $GLOBALS['xoTheme']->addScript(XOOPS_URL . _MI_SONGLIST_JQUERY, ['type' => 'text/javascript']);
98
+                    $GLOBALS['xoTheme']->addScript(XOOPS_URL._MI_SONGLIST_JQUERY, ['type' => 'text/javascript']);
99 99
                     $GLOBALS['loaded_jquery'] = true;
100 100
                 }
101
-                $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . _MI_SONGLIST_STYLESHEET, ['type' => 'text/css']);
101
+                $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL._MI_SONGLIST_STYLESHEET, ['type' => 'text/css']);
102 102
                 $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']);
103 103
                 $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['SCRIPT_NAME']);
104 104
                 $GLOBALS['xoopsTpl']->assign('results', $ret);
105 105
                 $GLOBALS['xoopsTpl']->assign('categories', $cat);
106 106
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav());
107 107
                 $GLOBALS['xoopsTpl']->assign('cid', $_SESSION['cid']);
108
-                if (0 != $_SESSION['cid']) {
108
+                if (0!=$_SESSION['cid']) {
109 109
                     $category = $categoryHandler->get($_SESSION['cid']);
110 110
                     $GLOBALS['xoopsTpl']->assign('category', $category->toArray(true));
111 111
                 }
@@ -118,17 +118,17 @@  discard block
 block discarded – undo
118 118
                 $url = $artist->getURL(true);
119 119
                 if (!mb_strpos($url, $_SERVER['REQUEST_URI'])) {
120 120
                     header('HTTP/1.1 301 Moved Permanently');
121
-                    header('Location: ' . $url);
121
+                    header('Location: '.$url);
122 122
                     exit(0);
123 123
                 }
124 124
 
125 125
                 $GLOBALS['xoopsOption']['template_main'] = 'songlist_artists_item.tpl';
126 126
                 require $GLOBALS['xoops']->path('/header.php');
127 127
                 if ($GLOBALS['songlistModuleConfig']['force_jquery'] && !isset($GLOBALS['loaded_jquery'])) {
128
-                    $GLOBALS['xoTheme']->addScript(XOOPS_URL . _MI_SONGLIST_JQUERY, ['type' => 'text/javascript']);
128
+                    $GLOBALS['xoTheme']->addScript(XOOPS_URL._MI_SONGLIST_JQUERY, ['type' => 'text/javascript']);
129 129
                     $GLOBALS['loaded_jquery'] = true;
130 130
                 }
131
-                $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . _MI_SONGLIST_STYLESHEET, ['type' => 'text/css']);
131
+                $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL._MI_SONGLIST_STYLESHEET, ['type' => 'text/css']);
132 132
                 $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']);
133 133
                 $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['SCRIPT_NAME']);
134 134
                 $GLOBALS['xoopsTpl']->assign('songs', false);
@@ -149,13 +149,13 @@  discard block
 block discarded – undo
149 149
                 $browse_criteria = new \CriteriaCompo();
150 150
                 switch ($value) {
151 151
                     case '0':
152
-                        for ($u = 0; $u < 10; ++$u) {
153
-                            $browse_criteria->add(new \Criteria('name', $u . '%', 'LIKE'), 'OR');
152
+                        for ($u = 0; $u<10; ++$u) {
153
+                            $browse_criteria->add(new \Criteria('name', $u.'%', 'LIKE'), 'OR');
154 154
                         }
155 155
                         break;
156 156
                     default:
157
-                        $browse_criteria->add(new \Criteria('name', \mb_strtoupper($value) . '%', 'LIKE'), 'OR');
158
-                        $browse_criteria->add(new \Criteria('name', \mb_strtolower($value) . '%', 'LIKE'), 'OR');
157
+                        $browse_criteria->add(new \Criteria('name', \mb_strtoupper($value).'%', 'LIKE'), 'OR');
158
+                        $browse_criteria->add(new \Criteria('name', \mb_strtolower($value).'%', 'LIKE'), 'OR');
159 159
                         break;
160 160
                 }
161 161
                 $criteria = new \CriteriaCompo($criteria_cat, 'AND');
@@ -174,42 +174,42 @@  discard block
 block discarded – undo
174 174
         $row = 1;
175 175
         foreach ($artists as $artist) {
176 176
             $ret[$row][$col]          = $artist->toArray(true);
177
-            $ret[$row][$col]['width'] = floor(100 / $GLOBALS['songlistModuleConfig']['cols']) . '%';
177
+            $ret[$row][$col]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%';
178 178
             ++$col;
179
-            if ($col > $GLOBALS['songlistModuleConfig']['cols']) {
179
+            if ($col>$GLOBALS['songlistModuleConfig']['cols']) {
180 180
                 ++$row;
181 181
                 $col = 1;
182 182
             }
183 183
         }
184
-        if (1 != $col) {
184
+        if (1!=$col) {
185 185
             $col--;
186
-            for ($j = $col; $j <= $GLOBALS['songlistModuleConfig']['cols']; ++$j) {
186
+            for ($j = $col; $j<=$GLOBALS['songlistModuleConfig']['cols']; ++$j) {
187 187
                 $ret[$row][$j][$artistsHandler->keyName] = 0;
188
-                $ret[$row][$j]['width']                  = floor(100 / $GLOBALS['songlistModuleConfig']['cols']) . '%';
188
+                $ret[$row][$j]['width']                  = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%';
189 189
             }
190 190
         }
191 191
 
192 192
         $url = $artistsHandler->getURL(false);
193 193
         if (!mb_strpos($url, $_SERVER['REQUEST_URI'])) {
194 194
             header('HTTP/1.1 301 Moved Permanently');
195
-            header('Location: ' . $url);
195
+            header('Location: '.$url);
196 196
             exit(0);
197 197
         }
198 198
 
199 199
         $GLOBALS['xoopsOption']['template_main'] = 'songlist_artists_index.tpl';
200 200
         require $GLOBALS['xoops']->path('/header.php');
201 201
         if ($GLOBALS['songlistModuleConfig']['force_jquery'] && !isset($GLOBALS['loaded_jquery'])) {
202
-            $GLOBALS['xoTheme']->addScript(XOOPS_URL . _MI_SONGLIST_JQUERY, ['type' => 'text/javascript']);
202
+            $GLOBALS['xoTheme']->addScript(XOOPS_URL._MI_SONGLIST_JQUERY, ['type' => 'text/javascript']);
203 203
             $GLOBALS['loaded_jquery'] = true;
204 204
         }
205
-        $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . _MI_SONGLIST_STYLESHEET, ['type' => 'text/css']);
205
+        $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL._MI_SONGLIST_STYLESHEET, ['type' => 'text/css']);
206 206
         $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']);
207 207
         $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['SCRIPT_NAME']);
208 208
         $GLOBALS['xoopsTpl']->assign('results', $ret);
209 209
         $GLOBALS['xoopsTpl']->assign('categories', $cat);
210 210
         $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav());
211 211
         $GLOBALS['xoopsTpl']->assign('cid', $_SESSION['cid']);
212
-        if (0 != $_SESSION['cid']) {
212
+        if (0!=$_SESSION['cid']) {
213 213
             $category = $categoryHandler->get($_SESSION['cid']);
214 214
             $GLOBALS['xoopsTpl']->assign('category', $category->toArray(true));
215 215
         }
@@ -227,5 +227,5 @@  discard block
 block discarded – undo
227 227
                 unset($_SESSION['cid']);
228 228
                 break;
229 229
         }
230
-        redirect_header($_SERVER['SCRIPT_NAME'] . "?op=item&fct=list&id=0&value=%&start=0&limit=$limit&cid=" . $_SESSION['cid'], 10, _MD_SONGLIST_MSG_CATEGORYCHANGED);
230
+        redirect_header($_SERVER['SCRIPT_NAME']."?op=item&fct=list&id=0&value=%&start=0&limit=$limit&cid=".$_SESSION['cid'], 10, _MD_SONGLIST_MSG_CATEGORYCHANGED);
231 231
 }
Please login to merge, or discard this patch.
admin/field.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 use XoopsModules\Songlist\Helper;
6 6
 use XoopsModules\Songlist\Form\FormController;
7 7
 
8
-require_once __DIR__ . '/header.php';
8
+require_once __DIR__.'/header.php';
9 9
 xoops_cp_header();
10 10
 
11 11
 $op           = (!empty($_GET['op']) ? $_GET['op'] : (!empty($_POST['op']) ? $_POST['op'] : (!empty($_REQUEST['id']) ? 'edit' : 'list')));
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             unset($criteria);
37 37
 
38 38
             $categories[0] = ['cid' => 0, 'name' => _AM_SONGLIST_FIELDS_DEFAULT];
39
-            if (count($category) > 0) {
39
+            if (count($category)>0) {
40 40
                 foreach (array_keys($category) as $i) {
41 41
                     $categories[$category[$i]->getVar('cid')] = ['cid' => $category[$i]->getVar('cid'), 'name' => $category[$i]->getVar('name')];
42 42
                 }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             redirect_header('field.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
142 142
         }
143 143
 
144
-        if (Request::hasVar('field_ids', 'POST') && count($_POST['field_ids']) > 0) {
144
+        if (Request::hasVar('field_ids', 'POST') && count($_POST['field_ids'])>0) {
145 145
             $oldweight     = $_POST['oldweight'];
146 146
             $oldcat        = $_POST['oldcat'];
147 147
             $oldcategories = $_POST['oldcategories'];
@@ -149,25 +149,25 @@  discard block
 block discarded – undo
149 149
             $weight        = $_POST['weight'];
150 150
             $ids           = [];
151 151
             foreach ($_POST['field_ids'] as $field_id) {
152
-                if ($oldweight[$field_id] != $weight[$field_id] || $oldcat[$field_id] != $category[$field_id] || count($oldcategories[$field_id]) != count(array_unique(array_merge($categories[$field_id], $oldcategories[$field_id])))) {
152
+                if ($oldweight[$field_id]!=$weight[$field_id] || $oldcat[$field_id]!=$category[$field_id] || count($oldcategories[$field_id])!=count(array_unique(array_merge($categories[$field_id], $oldcategories[$field_id])))) {
153 153
                     //if field has changed
154
-                    $ids[] = (int)$field_id;
154
+                    $ids[] = (int) $field_id;
155 155
                 }
156 156
             }
157
-            if (count($ids) > 0) {
157
+            if (count($ids)>0) {
158 158
                 $errors = [];
159 159
                 //if there are changed fields, fetch the fieldcategory objects
160 160
                 $fieldHandler = Helper::getInstance()
161 161
                                       ->getHandler('Field');
162
-                $fields       = $fieldHandler->getObjects(new \Criteria('field_id', '(' . implode(',', $ids) . ')', 'IN'), true);
162
+                $fields       = $fieldHandler->getObjects(new \Criteria('field_id', '('.implode(',', $ids).')', 'IN'), true);
163 163
                 foreach ($ids as $i) {
164
-                    $fields[$i]->setVar('field_weight', (int)$weight[$i]);
164
+                    $fields[$i]->setVar('field_weight', (int) $weight[$i]);
165 165
                     $fields[$i]->setVar('cids', $categories[$i]);
166 166
                     if (!$fieldHandler->insert($fields[$i])) {
167 167
                         $errors = array_merge($errors, $fields[$i]->getErrors());
168 168
                     }
169 169
                 }
170
-                if (0 == count($errors)) {
170
+                if (0==count($errors)) {
171 171
                     //no errors
172 172
                     redirect_header('field.php', 2, sprintf(_AM_SONGLIST_FIELDS_SAVEDSUCCESS, _AM_SONGLIST_FIELDS_FIELDS));
173 173
                 } else {
@@ -258,14 +258,14 @@  discard block
 block discarded – undo
258 258
             if ($obj->getVar('field_edit') || $obj->getVar('field_show')) {
259 259
                 $perm_arr[] = 'songlist_search';
260 260
             }
261
-            if (count($perm_arr) > 0) {
261
+            if (count($perm_arr)>0) {
262 262
                 foreach ($perm_arr as $perm) {
263 263
                     $criteria = new \CriteriaCompo(new \Criteria('gperm_name', $perm));
264
-                    $criteria->add(new \Criteria('gperm_itemid', (int)$obj->getVar('field_id')));
265
-                    $criteria->add(new \Criteria('gperm_modid', (int)$GLOBALS['songlistModule']->getVar('mid')));
264
+                    $criteria->add(new \Criteria('gperm_itemid', (int) $obj->getVar('field_id')));
265
+                    $criteria->add(new \Criteria('gperm_modid', (int) $GLOBALS['songlistModule']->getVar('mid')));
266 266
                     if (isset($_REQUEST[$perm]) && is_array($_REQUEST[$perm])) {
267 267
                         $perms = $grouppermHandler->getObjects($criteria);
268
-                        if (count($perms) > 0) {
268
+                        if (count($perms)>0) {
269 269
                             foreach (array_keys($perms) as $i) {
270 270
                                 $groups[$perms[$i]->getVar('gperm_groupid')] = $perms[$i];
271 271
                             }
@@ -273,11 +273,11 @@  discard block
 block discarded – undo
273 273
                             $groups = [];
274 274
                         }
275 275
                         foreach ($_REQUEST[$perm] as $grouoid) {
276
-                            $grouoid = (int)$grouoid;
276
+                            $grouoid = (int) $grouoid;
277 277
                             if (!isset($groups[$grouoid])) {
278 278
                                 $perm_obj = $grouppermHandler->create();
279 279
                                 $perm_obj->setVar('gperm_name', $perm);
280
-                                $perm_obj->setVar('gperm_itemid', (int)$obj->getVar('field_id'));
280
+                                $perm_obj->setVar('gperm_itemid', (int) $obj->getVar('field_id'));
281 281
                                 $perm_obj->setVar('gperm_modid', $GLOBALS['songlistModule']->getVar('mid'));
282 282
                                 $perm_obj->setVar('gperm_groupid', $grouoid);
283 283
                                 $grouppermHandler->insert($perm_obj);
@@ -285,8 +285,8 @@  discard block
 block discarded – undo
285 285
                             }
286 286
                         }
287 287
                         $removed_groups = array_diff(array_keys($groups), $_REQUEST[$perm]);
288
-                        if (count($removed_groups) > 0) {
289
-                            $criteria->add(new \Criteria('gperm_groupid', '(' . implode(',', $removed_groups) . ')', 'IN'));
288
+                        if (count($removed_groups)>0) {
289
+                            $criteria->add(new \Criteria('gperm_groupid', '('.implode(',', $removed_groups).')', 'IN'));
290 290
                             $grouppermHandler->deleteAll($criteria);
291 291
                         }
292 292
                         unset($groups);
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
                     unset($criteria);
297 297
                 }
298 298
             }
299
-            $url = $redirect_to_edit ? 'field.php?op=edit&amp;id=' . $obj->getVar('field_id') : 'field.php';
299
+            $url = $redirect_to_edit ? 'field.php?op=edit&amp;id='.$obj->getVar('field_id') : 'field.php';
300 300
             redirect_header($url, 3, sprintf(_AM_SONGLIST_FIELDS_SAVEDSUCCESS, _AM_SONGLIST_FIELDS_FIELD));
301 301
         }
302 302
 
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
         if (!$obj->getVar('field_config')) {
310 310
             redirect_header('index.php', 2, _AM_SONGLIST_FIELDS_FIELDNOTCONFIGURABLE);
311 311
         }
312
-        if (Request::hasVar('ok', 'REQUEST') && 1 == $_REQUEST['ok']) {
312
+        if (Request::hasVar('ok', 'REQUEST') && 1==$_REQUEST['ok']) {
313 313
             if (!$GLOBALS['xoopsSecurity']->check()) {
314 314
                 redirect_header('field.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
315 315
             }
Please login to merge, or discard this patch.
admin/migrate.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 /** @var Configurator $configurator */
33 33
 /** @var Migrate $migrator */
34 34
 
35
-require __DIR__ . '/admin_header.php';
35
+require __DIR__.'/admin_header.php';
36 36
 xoops_cp_header();
37 37
 
38 38
 $adminObject->displayNavigation(basename(__FILE__));
@@ -74,27 +74,27 @@  discard block
 block discarded – undo
74 74
         if (!empty($queue)) {
75 75
             echo "<pre>\n";
76 76
             foreach ($queue as $line) {
77
-                echo $line . ";\n";
77
+                echo $line.";\n";
78 78
             }
79 79
             echo "</pre>\n";
80 80
         }
81 81
         break;
82 82
     case 'migrate':
83 83
         $migrator->synchronizeSchema();
84
-        $message = constant('CO_' . $moduleDirNameUpper . '_' . 'MIGRATE_OK');
84
+        $message = constant('CO_'.$moduleDirNameUpper.'_'.'MIGRATE_OK');
85 85
         break;
86 86
     case 'schema':
87
-        xoops_confirm(['op' => 'confirmwrite'], 'migrate.php', constant('CO_' . $moduleDirNameUpper . '_' . 'MIGRATE_WARNING'), constant('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM'));
87
+        xoops_confirm(['op' => 'confirmwrite'], 'migrate.php', constant('CO_'.$moduleDirNameUpper.'_'.'MIGRATE_WARNING'), constant('CO_'.$moduleDirNameUpper.'_'.'CONFIRM'));
88 88
         break;
89 89
     case 'confirmwrite':
90 90
         if ($GLOBALS['xoopsSecurity']->check()) {
91 91
             $migrator->saveCurrentSchema();
92 92
 
93
-            $message = constant('CO_' . $moduleDirNameUpper . '_' . 'MIGRATE_SCHEMA_OK');
93
+            $message = constant('CO_'.$moduleDirNameUpper.'_'.'MIGRATE_SCHEMA_OK');
94 94
         }
95 95
         break;
96 96
 }
97 97
 
98 98
 echo "<div>$message</div>";
99 99
 
100
-require_once __DIR__ . '/admin_footer.php';
100
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/about.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@
 block discarded – undo
16 16
  */
17 17
 /** @var \Xmf\Module\Admin $adminObject */
18 18
 
19
-require_once __DIR__ . '/admin_header.php';
19
+require_once __DIR__.'/admin_header.php';
20 20
 xoops_cp_header();
21 21
 
22 22
 $adminObject->displayNavigation(basename(__FILE__));
23 23
 $adminObject::setPaypal('[email protected]');
24 24
 $adminObject->displayAbout(false);
25 25
 
26
-require_once __DIR__ . '/admin_footer.php';
26
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/permissions.php 1 patch
Spacing   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
 use Xmf\Module\Admin;
19 19
 use XoopsModules\Songlist\Helper;
20 20
 
21
-require_once __DIR__ . '/header.php';
22
-require_once XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['songlistModule']->getVar('dirname') . '/class/xoopsformloader.php';
23
-require_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php';
21
+require_once __DIR__.'/header.php';
22
+require_once XOOPS_ROOT_PATH.'/modules/'.$GLOBALS['songlistModule']->getVar('dirname').'/class/xoopsformloader.php';
23
+require_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php';
24 24
 
25 25
 /**
26 26
  * Add category navigation to forum casscade structure
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         foreach (array_keys($glist) as $i) {
65 65
             // get selected item id(s) for each group
66 66
             $selected = $grouppermHandler->getItemIds($this->_permName, $i, $this->_modid);
67
-            $ele      = new forum_XoopsGroupFormCheckBox($glist[$i], 'perms[' . $this->_permName . ']', $i, $selected);
67
+            $ele      = new forum_XoopsGroupFormCheckBox($glist[$i], 'perms['.$this->_permName.']', $i, $selected);
68 68
             $ele->setOptionTree($this->_itemTree);
69 69
             $this->addElement($ele);
70 70
             unset($ele);
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
         $tray->addElement(new \XoopsFormButton('', 'submit', _SUBMIT, 'submit'));
74 74
         $tray->addElement(new \XoopsFormButton('', 'reset', _CANCEL, 'reset'));
75 75
         $this->addElement($tray);
76
-        $ret      = '<h4>' . $this->getTitle() . '</h4>' . $this->_permDesc . '<br>';
77
-        $ret      .= "<form name='" . $this->getName() . "' id='" . $this->getName() . "' action='" . $this->getAction() . "' method='" . $this->getMethod() . "'" . $this->getExtra() . ">\n<table width='100%' class='outer' cellspacing='1' valign='top'>\n";
76
+        $ret      = '<h4>'.$this->getTitle().'</h4>'.$this->_permDesc.'<br>';
77
+        $ret .= "<form name='".$this->getName()."' id='".$this->getName()."' action='".$this->getAction()."' method='".$this->getMethod()."'".$this->getExtra().">\n<table width='100%' class='outer' cellspacing='1' valign='top'>\n";
78 78
         $elements = $this->getElements();
79 79
         $hidden   = '';
80 80
         foreach (array_keys($elements) as $i) {
@@ -83,11 +83,11 @@  discard block
 block discarded – undo
83 83
             } elseif ($elements[$i]->isHidden()) {
84 84
                 $hidden .= $elements[$i]->render();
85 85
             } else {
86
-                $ret .= "<tr valign='top' align='left'><td class='head'>" . $elements[$i]->getCaption();
87
-                if ('' != $elements[$i]->getDescription()) {
88
-                    $ret .= '<br><br><span style="font-weight: normal;">' . $elements[$i]->getDescription() . '</span>';
86
+                $ret .= "<tr valign='top' align='left'><td class='head'>".$elements[$i]->getCaption();
87
+                if (''!=$elements[$i]->getDescription()) {
88
+                    $ret .= '<br><br><span style="font-weight: normal;">'.$elements[$i]->getDescription().'</span>';
89 89
                 }
90
-                $ret .= "</td>\n<td class='even'>\n" . $elements[$i]->render() . "\n</td></tr>\n";
90
+                $ret .= "</td>\n<td class='even'>\n".$elements[$i]->render()."\n</td></tr>\n";
91 91
             }
92 92
         }
93 93
         $ret .= "</table>$hidden</form>";
@@ -124,25 +124,25 @@  discard block
 block discarded – undo
124 124
         $ret  = '<table class="outer"><tr><td class="odd"><table><tr>';
125 125
         $cols = 1;
126 126
         foreach ($this->_optionTree[0]['children'] as $topitem) {
127
-            if ($cols > 4) {
128
-                $ret  .= '</tr><tr>';
127
+            if ($cols>4) {
128
+                $ret .= '</tr><tr>';
129 129
                 $cols = 1;
130 130
             }
131 131
             $tree   = '<td valign="top">';
132 132
             $prefix = '';
133 133
             $this->_renderOptionTree($tree, $this->_optionTree[$topitem], $prefix);
134
-            $ret .= $tree . '</td>';
134
+            $ret .= $tree.'</td>';
135 135
             ++$cols;
136 136
         }
137 137
         $ret .= '</tr></table></td><td class="even">';
138 138
         foreach (array_keys($this->_optionTree) as $id) {
139 139
             if (!empty($id)) {
140
-                $option_ids[] = "'" . $this->getName() . '[groups][' . $this->_groupId . '][' . $id . ']' . "'";
140
+                $option_ids[] = "'".$this->getName().'[groups]['.$this->_groupId.']['.$id.']'."'";
141 141
             }
142 142
         }
143
-        $checkallbtn_id = $this->getName() . '[checkallbtn][' . $this->_groupId . ']';
143
+        $checkallbtn_id = $this->getName().'[checkallbtn]['.$this->_groupId.']';
144 144
         $option_ids_str = implode(', ', $option_ids);
145
-        $ret            .= _ALL . ' <input id="' . $checkallbtn_id . '" type="checkbox" value="" onclick="var optionids = new Array(' . $option_ids_str . "); xoopsCheckAllElements(optionids, '" . $checkallbtn_id . "');\">";
145
+        $ret            .= _ALL.' <input id="'.$checkallbtn_id.'" type="checkbox" value="" onclick="var optionids = new Array('.$option_ids_str."); xoopsCheckAllElements(optionids, '".$checkallbtn_id."');\">";
146 146
         $ret            .= '</td></tr></table>';
147 147
 
148 148
         return $ret;
@@ -156,36 +156,36 @@  discard block
 block discarded – undo
156 156
      */
157 157
     public function _renderOptionTree(&$tree, $option, $prefix, $parentIds = []): void
158 158
     {
159
-        if ($option['id'] > 0) :
160
-            $tree .= $prefix . '<input type="checkbox" name="' . $this->getName() . '[groups][' . $this->_groupId . '][' . $option['id'] . ']" id="' . $this->getName() . '[groups][' . $this->_groupId . '][' . $option['id'] . ']" onclick="';
159
+        if ($option['id']>0) :
160
+            $tree .= $prefix.'<input type="checkbox" name="'.$this->getName().'[groups]['.$this->_groupId.']['.$option['id'].']" id="'.$this->getName().'[groups]['.$this->_groupId.']['.$option['id'].']" onclick="';
161 161
             foreach ($parentIds as $pid) {
162
-                if ($pid <= 0) {
162
+                if ($pid<=0) {
163 163
                     continue;
164 164
                 }
165
-                $parent_ele = $this->getName() . '[groups][' . $this->_groupId . '][' . $pid . ']';
166
-                $tree       .= "var ele = xoopsGetElementById('" . $parent_ele . "'); if(ele.checked !== true) {ele.checked = this.checked;}";
165
+                $parent_ele = $this->getName().'[groups]['.$this->_groupId.']['.$pid.']';
166
+                $tree .= "var ele = xoopsGetElementById('".$parent_ele."'); if(ele.checked !== true) {ele.checked = this.checked;}";
167 167
             }
168 168
             foreach ($option['allchild'] as $cid) {
169
-                $child_ele = $this->getName() . '[groups][' . $this->_groupId . '][' . $cid . ']';
170
-                $tree      .= "var ele = xoopsGetElementById('" . $child_ele . "'); if(this.checked !== true) {ele.checked = false;}";
169
+                $child_ele = $this->getName().'[groups]['.$this->_groupId.']['.$cid.']';
170
+                $tree .= "var ele = xoopsGetElementById('".$child_ele."'); if(this.checked !== true) {ele.checked = false;}";
171 171
             }
172 172
             $tree .= '" value="1"';
173 173
             if (in_array($option['id'], $this->_value, true)) {
174 174
                 $tree .= ' checked';
175 175
             }
176
-            $tree .= '>' . $option['name'] . '<input type="hidden" name="' . $this->getName() . '[parents][' . $option['id'] . ']" value="' . implode(':', $parentIds) . '"><input type="hidden" name="' . $this->getName() . '[itemname][' . $option['id'] . ']" value="' . htmlspecialchars(
176
+            $tree .= '>'.$option['name'].'<input type="hidden" name="'.$this->getName().'[parents]['.$option['id'].']" value="'.implode(':', $parentIds).'"><input type="hidden" name="'.$this->getName().'[itemname]['.$option['id'].']" value="'.htmlspecialchars(
177 177
                     $option['name'],
178 178
                     ENT_QUOTES | ENT_HTML5
179
-                ) . "\"><br>\n";
179
+                )."\"><br>\n";
180 180
         else :
181
-            $tree .= $prefix . $option['name'] . '<input type="hidden" id="' . $this->getName() . '[groups][' . $this->_groupId . '][' . $option['id'] . "]\"><br>\n";
181
+            $tree .= $prefix.$option['name'].'<input type="hidden" id="'.$this->getName().'[groups]['.$this->_groupId.']['.$option['id']."]\"><br>\n";
182 182
         endif;
183 183
         if (isset($option['children'])) {
184 184
             foreach ($option['children'] as $child) {
185
-                if ($option['id'] > 0) {
185
+                if ($option['id']>0) {
186 186
                     $parentIds[] = $option['id'];
187 187
                 }
188
-                $this->_renderOptionTree($tree, $this->_optionTree[$child], $prefix . '&nbsp;-', $parentIds);
188
+                $this->_renderOptionTree($tree, $this->_optionTree[$child], $prefix.'&nbsp;-', $parentIds);
189 189
             }
190 190
         }
191 191
     }
@@ -223,23 +223,23 @@  discard block
 block discarded – undo
223 223
         $perm_template       = $songlistpermHandler->getTemplate($groupid = 0);
224 224
         foreach (array_keys($glist) as $i) {
225 225
             $selected   = !empty($perm_template[$i]) ? array_keys($perm_template[$i]) : [];
226
-            $ret_ele    = '<tr align="left" valign="top"><td class="head">' . $glist[$i] . '</td>';
226
+            $ret_ele    = '<tr align="left" valign="top"><td class="head">'.$glist[$i].'</td>';
227 227
             $ret_ele    .= '<td class="even">';
228 228
             $ret_ele    .= '<table class="outer"><tr><td class="odd"><table><tr>';
229 229
             $ii         = 0;
230 230
             $option_ids = [];
231 231
             foreach ($perms as $perm) {
232 232
                 ++$ii;
233
-                if (0 == $ii % 5) {
233
+                if (0==$ii%5) {
234 234
                     $ret_ele .= '</tr><tr>';
235 235
                 }
236
-                $checked      = in_array('forum_' . $perm, $selected, true) ? ' checked' : '';
237
-                $option_id    = $perm . '_' . $i;
236
+                $checked      = in_array('forum_'.$perm, $selected, true) ? ' checked' : '';
237
+                $option_id    = $perm.'_'.$i;
238 238
                 $option_ids[] = $option_id;
239
-                $ret_ele      .= '<td><input name="perms[' . $i . '][' . 'forum_' . $perm . ']" id="' . $option_id . '" onclick="" value="1" type="checkbox"' . $checked . '>' . constant('_AM_SONGLIST_CAN_' . \mb_strtoupper($perm)) . '<br></td>';
239
+                $ret_ele .= '<td><input name="perms['.$i.']['.'forum_'.$perm.']" id="'.$option_id.'" onclick="" value="1" type="checkbox"'.$checked.'>'.constant('_AM_SONGLIST_CAN_'.\mb_strtoupper($perm)).'<br></td>';
240 240
             }
241 241
             $ret_ele    .= '</tr></table></td><td class="even">';
242
-            $ret_ele    .= _ALL . ' <input id="checkall[' . $i . ']" type="checkbox" value="" onclick="var optionids = new Array(' . implode(', ', $option_ids) . '); xoopsCheckAllElements(optionids, \'checkall[' . $i . ']\')">';
242
+            $ret_ele    .= _ALL.' <input id="checkall['.$i.']" type="checkbox" value="" onclick="var optionids = new Array('.implode(', ', $option_ids).'); xoopsCheckAllElements(optionids, \'checkall['.$i.']\')">';
243 243
             $ret_ele    .= '</td></tr></table>';
244 244
             $ret_ele    .= '</td></tr>';
245 245
             $elements[] = $ret_ele;
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         $tray->addElement(new \XoopsFormHidden('action', 'template_save'));
249 249
         $tray->addElement(new \XoopsFormButton('', 'submit', _SUBMIT, 'submit'));
250 250
         $tray->addElement(new \XoopsFormButton('', 'reset', _CANCEL, 'reset'));
251
-        $ret = '<h4>' . _AM_SONGLIST_PERM_TEMPLATE . '</h4>' . _AM_SONGLIST_PERM_TEMPLATE_DESC . '<br><br><br>';
251
+        $ret = '<h4>'._AM_SONGLIST_PERM_TEMPLATE.'</h4>'._AM_SONGLIST_PERM_TEMPLATE_DESC.'<br><br><br>';
252 252
         $ret .= "<form name='template' id='template' method='post'>\n<table width='100%' class='outer' cellspacing='1'>\n";
253 253
         $ret .= implode("\n", $elements);
254 254
         $ret .= '<tr align="left" valign="top"><td class="head"></td><td class="even">';
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
     case 'apply':
270 270
         $songlistpermHandler = Helper::getInstance()->getHandler('Permission');
271 271
         $perm_template       = $songlistpermHandler->getTemplate();
272
-        if (null === $perm_template) {
272
+        if (null===$perm_template) {
273 273
             redirect_header('permissions.php?action=template', 2, _AM_SONGLIST_PERM_TEMPLATE);
274 274
         }
275 275
 
@@ -287,14 +287,14 @@  discard block
 block discarded – undo
287 287
         $songlists               = $GLOBALS['forumHandler']->getForumsByCategory(0, '', false, false, true);
288 288
         $fm_options              = [];
289 289
         foreach (array_keys($categories) as $c) {
290
-            $fm_options[-1 * $c] = '[' . $categories[$c]->getVar('cat_title') . ']';
290
+            $fm_options[-1*$c] = '['.$categories[$c]->getVar('cat_title').']';
291 291
             foreach (array_keys($songlists[$c]) as $f) {
292 292
                 $fm_options[$f] = $songlists[$c][$f]['title'];
293 293
                 if (!isset($songlists[$c][$f]['sub'])) {
294 294
                     continue;
295 295
                 }
296 296
                 foreach (array_keys($songlists[$c][$f]['sub']) as $s) {
297
-                    $fm_options[$s] = '-- ' . $songlists[$c][$f]['sub'][$s]['title'];
297
+                    $fm_options[$s] = '-- '.$songlists[$c][$f]['sub'][$s]['title'];
298 298
                 }
299 299
             }
300 300
         }
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
         }
317 317
         $songlistpermHandler = Helper::getInstance()->getHandler('Permission');
318 318
         foreach ($_POST['forums'] as $songlist) {
319
-            if ($songlist < 1) {
319
+            if ($songlist<1) {
320 320
                 continue;
321 321
             }
322 322
             $songlistpermHandler->applyTemplate($songlist, $module_id);
@@ -343,8 +343,8 @@  discard block
 block discarded – undo
343 343
         $op_options              = ['category' => _AM_SONGLIST_CAT_ACCESS];
344 344
         $fm_options              = ['category' => ['title' => _AM_SONGLIST_CAT_ACCESS, 'item' => 'category_access', 'desc' => '', 'anonymous' => true]];
345 345
         foreach ($perms as $perm) {
346
-            $op_options[$perm] = constant('_AM_SONGLIST_CAN_' . \mb_strtoupper($perm));
347
-            $fm_options[$perm] = ['title' => constant('_AM_SONGLIST_CAN_' . \mb_strtoupper($perm)), 'item' => 'forum_' . $perm, 'desc' => '', 'anonymous' => true];
346
+            $op_options[$perm] = constant('_AM_SONGLIST_CAN_'.\mb_strtoupper($perm));
347
+            $fm_options[$perm] = ['title' => constant('_AM_SONGLIST_CAN_'.\mb_strtoupper($perm)), 'item' => 'forum_'.$perm, 'desc' => '', 'anonymous' => true];
348 348
         }
349 349
 
350 350
         $op_keys = array_keys($op_options);
@@ -353,12 +353,12 @@  discard block
 block discarded – undo
353 353
             $op = $op_keys[0];
354 354
             setcookie('op', $op_keys[1] ?? '');
355 355
         } else {
356
-            for ($i = 0, $iMax = count($op_keys); $i < $iMax; ++$i) {
357
-                if ($op_keys[$i] == $op) {
356
+            for ($i = 0, $iMax = count($op_keys); $i<$iMax; ++$i) {
357
+                if ($op_keys[$i]==$op) {
358 358
                     break;
359 359
                 }
360 360
             }
361
-            setcookie('op', $op_keys[$i + 1] ?? '');
361
+            setcookie('op', $op_keys[$i+1] ?? '');
362 362
         }
363 363
 
364 364
         $opform    = new \XoopsSimpleForm('', 'opform', 'permissions.php', 'get');
@@ -374,22 +374,22 @@  discard block
 block discarded – undo
374 374
 
375 375
         $categoryHandler = Helper::getInstance()->getHandler('Category');
376 376
         $categories      = $categoryHandler->getObjects(null, true);
377
-        if ('category' === $op) {
377
+        if ('category'===$op) {
378 378
             foreach (array_keys($categories) as $c) {
379 379
                 $form->addItem($c, $categories[$c]->getVar('cat_title'));
380 380
             }
381 381
             unset($categories);
382 382
         } else {
383 383
             foreach (array_keys($categories) as $c) {
384
-                $key_c = -1 * $c;
385
-                $form->addItem($key_c, '<strong>[' . $categories[$c]->getVar('cat_title') . ']</strong>');
384
+                $key_c = -1*$c;
385
+                $form->addItem($key_c, '<strong>['.$categories[$c]->getVar('cat_title').']</strong>');
386 386
                 foreach (array_keys($songlists[$c]) as $f) {
387 387
                     $form->addItem($f, $songlists[$c][$f]['title'], $key_c);
388 388
                     if (!isset($songlists[$c][$f]['sub'])) {
389 389
                         continue;
390 390
                     }
391 391
                     foreach (array_keys($songlists[$c][$f]['sub']) as $s) {
392
-                        $form->addItem($s, '&rarr;' . $songlists[$c][$f]['sub'][$s]['title'], $f);
392
+                        $form->addItem($s, '&rarr;'.$songlists[$c][$f]['sub'][$s]['title'], $f);
393 393
                     }
394 394
                 }
395 395
             }
Please login to merge, or discard this patch.