Skip to main content
Homepage
Explore
Search or go to…
/
Sign in
Explore
Primary navigation
Project
N
Nextcloud mail - PostGuard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
Laura Kolijn
Nextcloud mail - PostGuard
Commits
d2c881bb
Commit
d2c881bb
authored
Apr 24, 2015
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
Fixing PHP message: Cannot redeclare generateNavigation()
parent
cfc6762c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
appinfo/app.php
+6
-9
6 additions, 9 deletions
appinfo/app.php
with
6 additions
and
9 deletions
appinfo/app.php
+
6
−
9
View file @
d2c881bb
...
...
@@ -11,18 +11,15 @@ Horde_Translation::setHandler('Horde_Imap_Client', new HordeTranslationHandler()
Horde_Translation
::
setHandler
(
'Horde_Mime'
,
new
HordeTranslationHandler
());
Horde_Translation
::
setHandler
(
'Horde_Smtp'
,
new
HordeTranslationHandler
());
function
generateNavigation
()
{
$l
=
\OC
::
$server
->
getL10N
(
'mail'
);
$g
=
\OC
::
$server
->
getURLGenerator
();
return
[
\OC
::
$server
->
getNavigationManager
()
->
add
(
[
'id'
=>
'mail'
,
'order'
=>
1
,
'href'
=>
$g
->
linkToRoute
(
'mail.page.index'
),
'icon'
=>
$g
->
imagePath
(
'mail'
,
'mail.svg'
),
'name'
=>
$l
->
t
(
'Mail'
),
];
}
\OC
::
$server
->
getNavigationManager
()
->
add
(
generateNavigation
()
]
);
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
sign in
to comment