summaryrefslogtreecommitdiffstats
path: root/lib/app.php
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-04-16 17:49:57 +0200
committerJakob Sack <kde@jakobsack.de>2011-04-16 17:49:57 +0200
commitaf1e48df80680dfa2b6e1367752a41aee750c308 (patch)
tree6207783e6124c9fb795f2eb12b3d67886c239731 /lib/app.php
parentb5f913a3fc66a3036fc7ea291d67a72f7a0ecd40 (diff)
downloadnextcloud-server-af1e48df80680dfa2b6e1367752a41aee750c308.tar.gz
nextcloud-server-af1e48df80680dfa2b6e1367752a41aee750c308.zip
Changes in the user experience
Diffstat (limited to 'lib/app.php')
-rw-r--r--lib/app.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/app.php b/lib/app.php
index 9f1ce6f1047..b08733e04d9 100644
--- a/lib/app.php
+++ b/lib/app.php
@@ -53,7 +53,7 @@ class OC_APP{
}
// Our very own core apps are hardcoded
- foreach( array( "admin", "files", "log", "settings" ) as $app ){
+ foreach( array( "admin", "files", "log", "help", "settings" ) as $app ){
require( "$app/appinfo/app.php" );
}
@@ -165,12 +165,23 @@ class OC_APP{
* property from all other entries. The templates can use this for
* highlighting the current position of the user.
*/
- public static function activateNavigationEntry( $id ){
+ public static function setActiveNavigationEntry( $id ){
self::$activeapp = $id;
return true;
}
/**
+ * @brief gets the active Menu entry
+ * @returns id or empty string
+ *
+ * This function returns the id of the active navigation entry (set by
+ * setActiveNavigationEntry
+ */
+ public static function getActiveNavigationEntry(){
+ return self::$activeapp;
+ }
+
+ /**
* @brief adds an entry to the personal menu
* @param $data array containing the data
* @returns true/false