Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
e6d4496f
Commit
e6d4496f
authored
Dec 04, 2015
by
Morris Jobke
Browse files
Remove unused setActiveNavigationEntry of OC_App - it's also in OCP\App
parent
e91eba4b
Changes
5
Hide whitespace changes
Inline
Side-by-side
lib/private/app.php
View file @
e6d4496f
...
...
@@ -360,23 +360,6 @@ class OC_App {
$appManager
->
disableApp
(
$app
);
}
/**
* marks a navigation entry as active
*
* @param string $id id of the entry
* @return bool
*
* This function sets a navigation entry as active and removes the 'active'
* property from all other entries. The templates can use this for
* highlighting the current position of the user.
*
* @deprecated Use \OC::$server->getNavigationManager()->setActiveEntry() instead
*/
public
static
function
setActiveNavigationEntry
(
$id
)
{
OC
::
$server
->
getNavigationManager
()
->
setActiveEntry
(
$id
);
return
true
;
}
/**
* gets the active Menu entry
*
...
...
lib/public/app.php
View file @
e6d4496f
...
...
@@ -82,7 +82,8 @@ class App {
* @since 4.0.0
*/
public
static
function
setActiveNavigationEntry
(
$id
)
{
return
\
OC_App
::
setActiveNavigationEntry
(
$id
);
\
OC
::
$server
->
getNavigationManager
()
->
setActiveEntry
(
$id
);
return
true
;
}
/**
...
...
settings/admin.php
View file @
e6d4496f
...
...
@@ -33,7 +33,7 @@
use
OC\Lock\NoopLockingProvider
;
OC_Util
::
checkAdminUser
();
OC
_App
::
se
tActive
NavigationEntry
(
"admin"
);
\
OC
::
$
se
rver
->
get
Navigation
Manager
()
->
setActive
Entry
(
"admin"
);
$template
=
new
OC_Template
(
'settings'
,
'admin'
,
'user'
);
$l
=
\
OC
::
$server
->
getL10N
(
'settings'
);
...
...
settings/help.php
View file @
e6d4496f
...
...
@@ -30,7 +30,7 @@ OC_Util::checkLoggedIn();
// Load the files we need
OC_Util
::
addStyle
(
"settings"
,
"settings"
);
OC
_App
::
se
tActive
NavigationEntry
(
"
help
"
);
\
OC
::
$
se
rver
->
get
Navigation
Manager
()
->
setActive
Entry
(
'
help
'
);
if
(
isset
(
$_GET
[
'mode'
])
and
$_GET
[
'mode'
]
===
'admin'
)
{
...
...
settings/users.php
View file @
e6d4496f
...
...
@@ -35,7 +35,7 @@
OC_Util
::
checkSubAdminUser
();
OC
_App
::
se
tActive
NavigationEntry
(
'core_users'
);
\
OC
::
$
se
rver
->
get
Navigation
Manager
()
->
setActive
Entry
(
'core_users'
);
$userManager
=
\
OC_User
::
getManager
();
$groupManager
=
\
OC_Group
::
getManager
();
...
...
Write
Preview
Markdown
is supported
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