diff -r bc4b58034f4d -r 518bc2b214f1 includes/pageprocess.php --- a/includes/pageprocess.php Sun Mar 02 19:32:19 2008 -0500 +++ b/includes/pageprocess.php Sun Mar 02 22:52:23 2008 -0500 @@ -1694,20 +1694,51 @@ function do_breadcrumbs() { global $db, $session, $paths, $template, $plugins; // Common objects + global $lang; + if ( strpos($this->text_cache, '__NOBREADCRUMBS__') !== false ) return false; + + $mode = getConfig('breadcrumb_mode'); + + if ( $mode == 'never' ) + // Breadcrumbs are disabled + return true; + + // Minimum depth for breadcrumb display + $threshold = ( $mode == 'always' ) ? 0 : 1; + $breadcrumb_data = explode('/', $this->page_id); - if ( count($breadcrumb_data) > 1 ) + if ( count($breadcrumb_data) > $threshold ) { + // If we're not on a subpage of the main page, add "Home" to the list + $show_home = false; + if ( $mode == 'always' ) + { + $show_home = true; + } echo '