From dc896a182065b327d744fb4dabcf114ce289e53d Mon Sep 17 00:00:00 2001 From: ts77 Date: Mon, 29 Nov 2010 17:09:18 +0000 Subject: [PATCH] MFB: show the current controlcenter panel also in the breadcrumbs and the page title --- control.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/control.php b/control.php index 83dc400e6..9f9c4c121 100644 --- a/control.php +++ b/control.php @@ -222,8 +222,19 @@ } } +// set the page title correctly +$PHORUM['DATA']['HTML_TITLE'].=PHORUM_SEPARATOR.$PHORUM["DATA"]["LANG"]["MyProfile"]; + if(empty($PHORUM["DATA"]["HEADING"])){ $PHORUM["DATA"]["HEADING"] = $PHORUM["DATA"]["LANG"]["MyProfile"]; +} else { + // set the breadcrumb with the heading + $PHORUM['DATA']['BREADCRUMBS'][]=array( + 'URL'=>phorum_api_url(PHORUM_CONTROLCENTER_URL, "panel=$panel"), + 'TEXT'=>$PHORUM['DATA']['HEADING'], + 'TYPE'=>'control' + ); + $PHORUM['DATA']['HTML_TITLE'].=PHORUM_SEPARATOR.$PHORUM['DATA']['HEADING']; } // unset default description