Commit 6f18745e authored by sylvieg's avatar sylvieg

[FIX]breadcrumb module: take into account the rows param

parent 74667273
<?php
/** $Header: /cvsroot/tikiwiki/tiki/modules/mod-breadcrumb.php,v 1.7 2005-05-18 11:02:27 mose Exp $
/** $Header: /cvsroot/tikiwiki/tiki/modules/mod-breadcrumb.php,v 1.8 2007-03-20 14:04:32 sylvieg Exp $
* \param maxlen = max number of displayed characters for the page name
*/
......@@ -12,8 +12,7 @@ if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
if (!isset($_SESSION["breadCrumb"])) {
$_SESSION["breadCrumb"] = array();
}
$bbreadCrumb = array_reverse($_SESSION["breadCrumb"]);
$bbreadCrumb = array_slice(array_reverse($_SESSION["breadCrumb"]), 0, $module_rows);
$smarty->assign('breadCrumb', $bbreadCrumb);
$smarty->assign('maxlen', isset($module_params["maxlen"]) ? $module_params["maxlen"] : 0);
?>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment