Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CSU
tweeki
Commits
1816110b
Commit
1816110b
authored
Mar 05, 2019
by
Tobias Haider
Browse files
Fix for page titles
parent
3444f62b
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/TweekiTemplate.php
View file @
1816110b
...
...
@@ -68,9 +68,9 @@ class TweekiTemplate extends BaseTemplate {
}
//set 'namespace' and 'title_formatted' variables
$this
->
data
[
'namespace'
]
=
str_replace
(
"_"
,
" "
,
$this
->
getSkin
()
->
getTitle
()
->
getNsText
()
);
$this
->
data
[
'title_formatted'
]
=
$this
->
data
[
'title'
];
if
(
$this
->
data
[
'namespace'
]
!==
''
)
{
$this
->
data
[
'namespace'
]
=
str_replace
(
"_"
,
" "
,
$this
->
getSkin
()
->
getTitle
()
->
getNsText
()
);
if
(
$this
->
getSkin
()
->
getTitle
()
->
exists
()
&&
$this
->
data
[
'namespace'
]
!==
''
)
{
$this
->
data
[
'title_formatted'
]
=
'<span class="namespace">'
.
$this
->
data
[
'namespace'
]
.
":</span> "
.
$this
->
getSkin
()
->
getTitle
()
->
getText
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment