@@ -507,8 +507,10 @@ public static function generateTabIcon($menuCustomArray, $i)
507
507
* Call by configMenuCustom()
508
508
* @return array
509
509
*/
510
- public static function generateTypeObject ($ objectId , $ i , $ webviewUrl , $ pluginPanelMobile )
510
+ public static function generateTypeObject ($ pluginPanelMobile , $ menuCustomArray )
511
511
{
512
+ $ webviewUrl = 'd ' ;
513
+ $ objectId = isset ($ menuCustomArray ['selectNameMenu ' ]) ? $ menuCustomArray ['selectNameMenu ' ] : '' ;
512
514
$ result = array ();
513
515
if ($ objectId && $ objectId != -1 && $ objectId != 'none ' && $ objectId != 'url ' ) {
514
516
// SPECIFIC OBJETS FOR URL
@@ -567,7 +569,7 @@ public static function generateTypeObject($objectId, $i, $webviewUrl, $pluginPan
567
569
$ typeObject = $ objectId ;
568
570
$ typewebviewurl = $ webviewUrl ;
569
571
$ typeobjectId = 'url ' ;
570
- $ tabUrl = $ menuCustomArray [$ i ][ 'urlUser ' ];
572
+ $ tabUrl = $ menuCustomArray ['urlUser ' ];
571
573
} else {
572
574
$ typeObject = $ objectId ;
573
575
$ typewebviewurl = 'm ' ;
@@ -667,13 +669,14 @@ public function configMenuCustom()
667
669
$ tabLibName = $ resultTabIcon ['tabLibName ' ];
668
670
$ tabRenameInput = $ resultTabIcon ['tabRenameInput ' ];
669
671
//$objectId = $menuCustomArray[$i]['selectNameMenu'];
670
- $ objectId = isset ($ menuCustomArray [$ i ]['selectNameMenu ' ]) ? $ menuCustomArray [$ i ]['selectNameMenu ' ] : '' ;
672
+ // $objectId = isset($menuCustomArray[$i]['selectNameMenu']) ? $menuCustomArray[$i]['selectNameMenu'] : '';
671
673
$ isActive = true ;
672
- $ webviewUrl = 'd ' ;
673
- if (!empty ($ objectId )) log::add ('mobile ' , 'debug ' , '|| - objectId > ' . $ objectId );
674
+ // $webviewUrl = 'd';
675
+ // if (!empty($objectId)) log::add('mobile', 'debug', '|| - objectId > ' . $objectId);
674
676
675
677
// GENERATE URLS FOR MENU CUSTOM
676
- $ result = self ::generateTypeObject ($ objectId , $ i , $ webviewUrl , $ pluginPanelMobile );
678
+ //$result = self::generateTypeObject($objectId, $i, $webviewUrl, $pluginPanelMobile);
679
+ $ result = self ::generateTypeObject ($ pluginPanelMobile , $ menuCustomArray [$ i ]);
677
680
$ typeObject = $ result ['typeObject ' ];
678
681
$ typewebviewurl = $ result ['typewebviewurl ' ];
679
682
$ typeobjectId = $ result ['typeobjectId ' ];
0 commit comments