mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-16 09:44:29 +02:00
Better $title inventing
This commit is contained in:
parent
524e982a0e
commit
0c95bcfd06
@ -326,7 +326,9 @@ if (isset($_REQUEST['_page_only'])) {
|
|||||||
|
|
||||||
if(!isset($title)) {
|
if(!isset($title)) {
|
||||||
$title = str_replace('index.php/', '', $page);
|
$title = str_replace('index.php/', '', $page);
|
||||||
$title = ucfirst($title);
|
$title = str_replace(['_', '-', '/'], ' ', $page);
|
||||||
|
|
||||||
|
$title = ucwords($title);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(setting('core.backward_support')) {
|
if(setting('core.backward_support')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user