From: hickert Date: Mon, 26 Apr 2010 16:15:49 +0000 (+0000) Subject: Updated pathMenu X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3c10c1482d7df19984b452b537e735a7e592183b;p=gosa.git Updated pathMenu -Sets the window title too now git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17855 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_pathNavigator.inc b/gosa-core/include/class_pathNavigator.inc index a7af83ec2..ba458c1ef 100644 --- a/gosa-core/include/class_pathNavigator.inc +++ b/gosa-core/include/class_pathNavigator.inc @@ -53,27 +53,36 @@ class pathNavigator if(!empty($str)){ $cur = session::get('pathNavigator::position'); - - if(!empty($title)) $title = " title='{$title}' "; - - $cur.= "\n
  • {$str}
  • "; + $entry = array('TITLE' => $title, 'NAME' => $str); + $cur[] = $entry; session::set('pathNavigator::position', $cur); } } static function getCurrentPath() { - $path = session::get('pathNavigator::position'); + $list = session::get('pathNavigator::position'); + $path = ""; + $sTitle = ""; + foreach($list as $entry){ + $title = (!empty($entry['TITLE']))? 'title="'.htmlentities(LDAP::fix($entry['TITLE']),ENT_COMPAT,'UTF-8').'"': ''; + $path.= "\n
  • {$entry['NAME']}
  • "; + $sTitle .= " - ".$entry['NAME']; + } + if(empty($path)){ $path = "
  • "._("Welcome to GOsa")."
  • "; } + $smarty = get_smarty(); + $smarty->assign('title', 'GOsa '.$sTitle); return($path); } static function clear() { session::set('pathNavigator::position',''); + session::set('pathNavigator::title',''); } }