Commit fe5cc0d1 authored by Zachary Doll's avatar Zachary Doll

Get rid of useless breadcrumb root

parent 4e14e86b
......@@ -154,8 +154,6 @@ class YagaHooks implements Gdn_IPlugin {
// Tell the ProfileController what tab to load
$Sender->GetUserInfo($UserReference, $Username);
$Sender->_SetBreadcrumbs(T('Yaga.Reactions'), UserUrl($Sender->User, '', 'reactions'));
$Sender->SetTabView(T('Yaga.Reactions'), 'reactions', 'profile', 'Yaga');
$Sender->AddJsFile('jquery.expander.js');
......@@ -189,7 +187,10 @@ class YagaHooks implements Gdn_IPlugin {
// Add the specific action to the breadcrumbs
$action = Yaga::ActionModel()->GetID($ActionID);
$Sender->Data['Breadcrumbs'][] = array('Name' => $action->Name, 'Url' => $BaseUrl);
if($action) {
$Sender->_SetBreadcrumbs($action->Name, $BaseUrl);
}
// Render the ProfileController
$Sender->Render();
}
......
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