Skip to content

Commit 737beab

Browse files
committed
Support breadcrumbs
Signed-off-by: Matt Friedman <[email protected]>
1 parent 2d0e069 commit 737beab

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

controller/main.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,15 @@ public function handle()
173173
$this->data['components'][$component] = $this->get_user_input('component_' . $component, $details['default']);
174174
}
175175

176-
$this->template->assign_var('S_POST_ACTION', $this->helper->route('phpbb_skeleton_controller'));
176+
$phpbb_skeleton_controller = $this->helper->route('phpbb_skeleton_controller');
177+
178+
$this->template->assign_var('S_POST_ACTION', $phpbb_skeleton_controller);
179+
180+
// Create breadcrumbs
181+
$this->template->assign_block_vars('navlinks', [
182+
'FORUM_NAME' => $this->language->lang('PHPBB_SKELETON_EXT'),
183+
'U_VIEW_FORUM' => $phpbb_skeleton_controller,
184+
]);
177185

178186
return $this->helper->render('@phpbb_skeleton/skeleton_body.html', $this->language->lang('PHPBB_CREATE_SKELETON_EXT'));
179187
}

0 commit comments

Comments
 (0)