18
18
* @version $Id: links.php
19
19
*/
20
20
21
- $ currentFile = basename (__FILE__ );
22
21
include_once __DIR__ . '/admin_header.php ' ;
23
22
23
+ $ currentFile = basename (__FILE__ );
24
+
24
25
$ mymenusTpl = new XoopsTpl (); // will be removed???
25
26
$ mymenusAdminPage = 'links.php ' ; // will be removed???
26
27
170
171
break ;
171
172
}
172
173
173
-
174
174
/**
175
175
* Class MymenusLinksUtilities
176
176
*/
177
177
class MymenusLinksUtilities
178
178
{
179
179
180
-
181
180
/**
182
181
* Display the links in a menu
183
182
*
@@ -198,7 +197,7 @@ public static function mymenusAdminList($start = 0, $mid)
198
197
$ linksCriteria ->setSort ('weight ' );
199
198
$ linksCriteria ->setOrder ('ASC ' );
200
199
//
201
- $ menusArray = array ();
200
+ // $menusArray = array();
202
201
if (($ linksCount > 0 ) && ($ linksCount >= (int )$ start )) {
203
202
$ linksCriteria ->setStart ((int )$ start );
204
203
$ linksArrays = $ mymenus ->getHandler ('links ' )->getObjects ($ linksCriteria , false , false ); // as array
@@ -306,7 +305,7 @@ public static function mymenusAdminSave($id, $mid)
306
305
* @param null $id
307
306
* @param null $pid
308
307
*
309
- * @param null $mid
308
+ * @param null $mid
310
309
* @return string
311
310
*/
312
311
public static function mymenusAdminForm ($ id = null , $ pid = null , $ mid = null )
@@ -319,10 +318,10 @@ public static function mymenusAdminForm($id = null, $pid = null, $mid = null)
319
318
$ xoopsLogger ->activated = false ;
320
319
error_reporting (0 );
321
320
322
- global $ pathIcon16 ;
321
+ $ pathIcon16 = $ GLOBALS [ ' xoops ' ]-> url ( ' www/ ' . $ GLOBALS [ ' xoopsModule ' ]-> getInfo ( ' systemIcons16 ' )) ;
323
322
324
- $ registry =& MymenusRegistry::getInstance ();
325
- $ plugin =& MymenusPlugin::getInstance ();
323
+ // $registry =& MymenusRegistry::getInstance();
324
+ // $plugin =& MymenusPlugin::getInstance();
326
325
327
326
$ linksObj = $ mymenus ->getHandler ('links ' )->get ((int )$ id );
328
327
@@ -352,7 +351,7 @@ public static function mymenusAdminForm($id = null, $pid = null, $mid = null)
352
351
if (count ($ menusList ) > 1 ) {
353
352
// display menu options (if more than 1 menu available
354
353
if (!($ linksObj ->getVar ('mid ' ))) { // initial menu value not set
355
- $ menuValues = array_flip ($ menusList );
354
+ // $menuValues = array_flip($menusList);
356
355
$ formmid = new XoopsFormSelect (_AM_MYMENUS_MENU_MENU , 'mid ' , $ mid );//array_shift($menuValues));
357
356
} else {
358
357
$ formmid = new XoopsFormSelect (_AM_MYMENUS_MENU_MENU , 'mid ' , $ linksObj ->getVar ('mid ' ));
@@ -432,7 +431,7 @@ public static function mymenusAdminForm($id = null, $pid = null, $mid = null)
432
431
*
433
432
* Update the {@see MymenusLinks} weight (order)
434
433
*
435
- * @param integer $id of links object
434
+ * @param integer $id of links object
436
435
* @param integer $weight
437
436
*/
438
437
public static function mymenusAdminMove ($ id , $ weight )
0 commit comments