Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
20b6cb28
Commit
20b6cb28
authored
12 years ago
by
Bart Visscher
Browse files
Options
Downloads
Patches
Plain Diff
Fix warning with displayname in user layout template
parent
e969a78c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/templates/layout.user.php
+1
-1
1 addition, 1 deletion
core/templates/layout.user.php
lib/templatelayout.php
+3
-0
3 additions, 0 deletions
lib/templatelayout.php
with
4 additions
and
1 deletion
core/templates/layout.user.php
+
1
−
1
View file @
20b6cb28
<!DOCTYPE html>
<html>
<head>
<title>
<?php
echo
isset
(
$_
[
'application'
])
&&
!
empty
(
$_
[
'application'
])
?
$_
[
'application'
]
.
' | '
:
''
?>
ownCloud
<?php
echo
OC_User
::
getD
isplay
N
ame
(
)
?
' ('
.
OC_Util
::
sanitizeHTML
(
OC_User
::
getD
isplay
N
ame
())
.
') '
:
''
?>
</title>
<title>
<?php
echo
!
empty
(
$_
[
'application'
])
?
$_
[
'application'
]
.
' | '
:
''
?>
ownCloud
<?php
echo
!
empty
(
$_
[
'user_d
isplay
n
ame
'
]
)
?
' ('
.
$_
[
'user_d
isplay
n
ame
'
]
.
') '
:
''
?>
</title>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"apple-itunes-app"
content=
"app-id=543672169"
>
<link
rel=
"shortcut icon"
href=
"
<?php
echo
image_path
(
''
,
'favicon.png'
);
?>
"
/><link
rel=
"apple-touch-icon-precomposed"
href=
"
<?php
echo
image_path
(
''
,
'favicon-touch.png'
);
?>
"
/>
...
...
This diff is collapsed.
Click to expand it.
lib/templatelayout.php
+
3
−
0
View file @
20b6cb28
...
...
@@ -19,6 +19,7 @@ class OC_TemplateLayout extends OC_Template {
}
// Add navigation entry
$this
->
assign
(
'application'
,
''
,
false
);
$navigation
=
OC_App
::
getNavigation
();
$this
->
assign
(
'navigation'
,
$navigation
,
false
);
$this
->
assign
(
'settingsnavigation'
,
OC_App
::
getSettingsNavigation
(),
false
);
...
...
@@ -28,6 +29,8 @@ class OC_TemplateLayout extends OC_Template {
break
;
}
}
$user_displayname
=
OC_User
::
getDisplayName
();
$this
->
assign
(
'user_displayname'
,
$user_displayname
);
}
else
if
(
$renderas
==
'guest'
)
{
parent
::
__construct
(
'core'
,
'layout.guest'
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment