diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-07 10:17:44 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-07 10:17:44 +0100 |
commit | c9069d571166439687bc2c20f725d0c63862c228 (patch) | |
tree | 1c44602452ca10e657046b1cecdc0fb9ecff3aee /lib | |
parent | 884946276e13e7949cb2a5a46fd29d342ff386d4 (diff) | |
parent | 46a6c6d70bb3d66a129c247ce9d9e5b41c80c2ed (diff) | |
download | nextcloud-server-c9069d571166439687bc2c20f725d0c63862c228.tar.gz nextcloud-server-c9069d571166439687bc2c20f725d0c63862c228.zip |
Merge pull request #20959 from owncloud/drop-OC_App-setActiveNavigationEntry
Remove unused setActiveNavigationEntry of OC_App - it's also in OCP\App
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/app.php | 31 | ||||
-rw-r--r-- | lib/public/app.php | 3 |
2 files changed, 2 insertions, 32 deletions
diff --git a/lib/private/app.php b/lib/private/app.php index c6e235eda4d..145517e218a 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -361,37 +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 - * - * This function returns the id of the active navigation entry (set by - * setActiveNavigationEntry - * - * @deprecated Use \OC::$server->getNavigationManager()->getActiveEntry() instead - */ - public static function getActiveNavigationEntry() { - return OC::$server->getNavigationManager()->getActiveEntry(); - } - - /** * Returns the Settings Navigation * * @return 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; } /** |