diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-12-04 17:23:51 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-12-04 17:23:51 +0100 |
commit | e6d4496fc2a924c3682ae205226cce80ee401cbd (patch) | |
tree | 8f8ea8c22a2546f2a5b117f8bb6916a773702592 /lib | |
parent | e91eba4b5bd856cb1ef81996ace6d16c09f1bb01 (diff) | |
download | nextcloud-server-e6d4496fc2a924c3682ae205226cce80ee401cbd.tar.gz nextcloud-server-e6d4496fc2a924c3682ae205226cce80ee401cbd.zip |
Remove unused setActiveNavigationEntry of OC_App - it's also in OCP\App
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/app.php | 17 | ||||
-rw-r--r-- | lib/public/app.php | 3 |
2 files changed, 2 insertions, 18 deletions
diff --git a/lib/private/app.php b/lib/private/app.php index c6e235eda4d..78b039b87f0 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -361,23 +361,6 @@ class OC_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 * * @return string id or empty string diff --git a/lib/public/app.php b/lib/public/app.php index c66d988c315..cc414842628 100644 --- a/lib/public/app.php +++ b/lib/public/app.php @@ -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; } /** |