Commit 333c250f25b82abdd8f007554fb03ddbf86bf35e

Authored by Edmar Moretti
1 parent 85ac18fd

--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 127 else
128 128 {$resultado = $this->menutemas;}
129 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 131 return ($resultado);
134 132 }
135 133 /*
... ... @@ -175,7 +173,7 @@ array
175 173 {
176 174 if(!isset($menu["url"])){$menu["url"] = "";} //para efeitos de compatibilidade entre versões do i3geo
177 175 $ondexml = $menu["arquivo"];
178   - if(!isset($menu["publicado"])){$ondexml = $menu["url"];}
  176 + //if(!isset($menu["publicado"])){$ondexml = $menu["url"];}
179 177 if($ondexml != "" && $this->menutemas != "")
180 178 {
181 179 $xml = simplexml_load_file($ondexml);
... ... @@ -183,8 +181,6 @@ array
183 181 }
184 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 184 include_once("../admin/php/classe_arvore.php");
189 185 $arvore = new Arvore($this->locaplic);
190 186 $grupos = $arvore->formataGruposMenu($idmenu,$this->perfil,$listasgrupos);
... ...