diff --git a/tpl/nav-usertools-buttons.php b/tpl/nav-usertools-buttons.php
index f93cbb4..c4adcd5 100755
--- a/tpl/nav-usertools-buttons.php
+++ b/tpl/nav-usertools-buttons.php
@@ -7,15 +7,14 @@
- asHtmlLink();
} else {
echo (new \dokuwiki\Menu\Item\Login())->asHtmlButton();
}
- } else {
- //Pre-Greebo Backwards compatibility
- tpl_actionlink('login');
+ } catch (\RuntimeException $ignored) {
+ // item not available
}
?>
@@ -26,26 +25,15 @@
}?>
' . (new \dokuwiki\Menu\Item\Admin())->asHtmlLink() . '';
- } catch(\RuntimeException $ignored) {
- // item not available
- }
- try{
- echo '- ' . (new \dokuwiki\Menu\Item\Register())->asHtmlLink() . '
';
- } catch(\RuntimeException $ignored) {
- // item not available
- }
- } else {
- //Pre-Greebo Backwards compatibility
- tpl_toolsevent(
- 'usertools',
- array(
- 'admin' => tpl_action('admin', 1, 'li', 1),
- 'register' => tpl_action('register', 1, 'li', 1),
- )
- );
+ try{
+ echo '- ' . (new \dokuwiki\Menu\Item\Admin())->asHtmlLink() . '
';
+ } catch(\RuntimeException $ignored) {
+ // item not available
+ }
+ try{
+ echo '- ' . (new \dokuwiki\Menu\Item\Register())->asHtmlLink() . '
';
+ } catch(\RuntimeException $ignored) {
+ // item not available
}
?>