Commit f4f6c158 authored by Tobias Haider's avatar Tobias Haider
Browse files

allow return as divider in navigational messages, fixes #2

parent a85e1da3
......@@ -855,7 +855,7 @@ class TweekiTemplate extends BaseTemplate {
public function buildItems( $items, $options, $context ) {
$buttons = [];
$customItems = [];
$navbarItems = explode( ',', $items );
$navbarItems = preg_split( '/[\n,]/', $items );
foreach( $navbarItems as $navbarItem ) {
$navbarItem = trim( $navbarItem );
$navbarItem = $this->renderNavigation( $navbarItem );
......
Supports Markdown
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