Commit 333c250f25b82abdd8f007554fb03ddbf86bf35e
1 parent
85ac18fd
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
2 additions
and
6 deletions
Show diff stats
classesphp/classe_menutemas.php
| @@ -127,9 +127,7 @@ array | @@ -127,9 +127,7 @@ array | ||
| 127 | else | 127 | else |
| 128 | {$resultado = $this->menutemas;} | 128 | {$resultado = $this->menutemas;} |
| 129 | if(count($resultado) == 0) | 129 | if(count($resultado) == 0) |
| 130 | - { | ||
| 131 | - $resultado[] = array("idmenu"=>"i3geo (xml)","arquivo"=>"../menutemas/menutemas.xml","status"=>"aberto"); | ||
| 132 | - } | 130 | + {$resultado[] = array("publicado"=>"SIM","idmenu"=>"i3geo (xml)","arquivo"=>"../menutemas/menutemas.xml","status"=>"aberto");} |
| 133 | return ($resultado); | 131 | return ($resultado); |
| 134 | } | 132 | } |
| 135 | /* | 133 | /* |
| @@ -175,7 +173,7 @@ array | @@ -175,7 +173,7 @@ array | ||
| 175 | { | 173 | { |
| 176 | if(!isset($menu["url"])){$menu["url"] = "";} //para efeitos de compatibilidade entre versões do i3geo | 174 | if(!isset($menu["url"])){$menu["url"] = "";} //para efeitos de compatibilidade entre versões do i3geo |
| 177 | $ondexml = $menu["arquivo"]; | 175 | $ondexml = $menu["arquivo"]; |
| 178 | - if(!isset($menu["publicado"])){$ondexml = $menu["url"];} | 176 | + //if(!isset($menu["publicado"])){$ondexml = $menu["url"];} |
| 179 | if($ondexml != "" && $this->menutemas != "") | 177 | if($ondexml != "" && $this->menutemas != "") |
| 180 | { | 178 | { |
| 181 | $xml = simplexml_load_file($ondexml); | 179 | $xml = simplexml_load_file($ondexml); |
| @@ -183,8 +181,6 @@ array | @@ -183,8 +181,6 @@ array | ||
| 183 | } | 181 | } |
| 184 | else //pega o xml do sistema de administração | 182 | else //pega o xml do sistema de administração |
| 185 | { | 183 | { |
| 186 | - //$xml = simplexml_load_string(geraXmlMenutemas(implode(" ",$this->perfil),$idmenu,$tipo,$this->locaplic)); | ||
| 187 | - //$grupos = $this->retornaGrupos($xml,$listasistemas,$idmenu,$listasgrupos); | ||
| 188 | include_once("../admin/php/classe_arvore.php"); | 184 | include_once("../admin/php/classe_arvore.php"); |
| 189 | $arvore = new Arvore($this->locaplic); | 185 | $arvore = new Arvore($this->locaplic); |
| 190 | $grupos = $arvore->formataGruposMenu($idmenu,$this->perfil,$listasgrupos); | 186 | $grupos = $arvore->formataGruposMenu($idmenu,$this->perfil,$listasgrupos); |