Skip to content

Commit

Permalink
#528 Menü-Modul checken
Browse files Browse the repository at this point in the history
  • Loading branch information
GodMod committed Apr 24, 2013
1 parent f8ba4d5 commit 61456f0
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions menu_portal.class.php
Expand Up @@ -53,15 +53,6 @@ public function get_settings($state){

$arrMenuItems = $this->core->build_menu_array(true, true);

if(is_array($this->pdh->get('pages', 'startpage_list', array()))){
// Add Pages to startpage array
$arrMenuItems = array_merge_recursive( $arrMenuItems, $this->pdh->get('pages', 'startpage_list', array()));
}

if(is_array($this->pdh->get('pages', 'guildrule_page', array(true)))){
$arrMenuItems = array_merge_recursive( $arrMenuItems, $this->pdh->get('pages', 'guildrule_page', array(true)));
}

foreach($arrMenuItems as $page){
$link = $this->user->removeSIDfromString($page['link']);
$hash = (isset($page['_hash'])) ? $page['_hash'] : md5($link.$page['text']);
Expand Down Expand Up @@ -146,16 +137,7 @@ public function output() {
if (!$arrItems) return '';

$arrMenuItems = $this->core->build_menu_array(true, true);

if(is_array($this->pdh->get('pages', 'startpage_list', array()))){
// Add Pages to startpage array
$arrMenuItems = array_merge_recursive( $arrMenuItems, $this->pdh->get('pages', 'startpage_list', array()));
}

if(is_array($this->pdh->get('pages', 'guildrule_page', array(true)))){
$arrMenuItems = array_merge_recursive( $arrMenuItems, $this->pdh->get('pages', 'guildrule_page', array(true)));
}


foreach($arrMenuItems as $page){
$link = $this->user->removeSIDfromString($page['link']);
$hash = (isset($page['_hash'])) ? $page['_hash'] : md5($link.$page['text']);
Expand Down

0 comments on commit 61456f0

Please sign in to comment.