Merge pull request #27156 from mdeweerd/qual/fix/undeclared/showmenu

Fix $showmenu seen as undeclared by static checker.
This commit is contained in:
Laurent Destailleur 2023-12-19 15:53:28 +01:00 committed by GitHub
commit 23615499d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -174,6 +174,7 @@ class MenuManager
// $this->menu->liste is top menu
//var_dump($this->menu->liste);exit;
$lastlevel = array();
$showmenu = true; // Is current menu shown - define here to keep static code checker happy
print '<!-- Generate menu list from menu handler '.$this->name.' -->'."\n";
foreach ($this->menu->liste as $key => $val) { // $val['url','titre','level','enabled'=0|1|2,'target','mainmenu','leftmenu'
print '<ul class="ulmenu" data-inset="true">';

View file

@ -165,6 +165,7 @@ class MenuManager
// $this->menu->liste is top menu
//var_dump($this->menu->liste);exit;
$lastlevel = array();
$showmenu = true; // Is current menu shown - define here to keep static code checker happy
print '<!-- Generate menu list from menu handler '.$this->name.' -->'."\n";
foreach ($this->menu->liste as $key => $val) { // $val['url','titre','level','enabled'=0|1|2,'target','mainmenu','leftmenu'
print '<ul class="ulmenu" data-inset="true">';