Skip to content

Commit

Permalink
MFB: show the current controlcenter panel also in the breadcrumbs and…
Browse files Browse the repository at this point in the history
… the page title
  • Loading branch information
ts77 committed Nov 29, 2010
1 parent 08181a5 commit dc896a1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions control.php
Expand Up @@ -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
Expand Down

0 comments on commit dc896a1

Please sign in to comment.