fix page title handling broken in #4107

This commit is contained in:
Andreas Gohr 2023-11-14 08:26:21 +01:00
parent 1d4c3caf85
commit bcedcbabae
1 changed files with 6 additions and 4 deletions

View File

@ -999,26 +999,28 @@ function tpl_pagetitle($id = null, $ret = false)
}
break;
// user functions
// show action as title
case 'login':
case 'profile':
case 'register':
case 'resendpwd':
case 'index':
case 'search':
$page_title = $lang['btn_' . $ACT];
break;
// wiki functions
case 'search':
// page functions
// add pen during editing
case 'edit':
case 'preview':
$page_title = "" . $name;
break;
// add action to page name
case 'revisions':
$page_title = $name . ' - ' . $lang['btn_revs'];
break;
// add action to page name
case 'backlink':
case 'recent':
case 'subscribe':