diff options
author | Frank Karlitschek <karlitschek@kde.org> | 2012-03-23 15:52:41 +0100 |
---|---|---|
committer | Frank Karlitschek <karlitschek@kde.org> | 2012-03-23 15:52:41 +0100 |
commit | a191b75c3192156c67f45778e05cf88fff42bf50 (patch) | |
tree | 467425cf47e8eef3ea6492c89f5751d29b64184c /lib/app.php | |
parent | 82b54938e32a980d3d268a63fdf56598f12e2ff4 (diff) | |
download | nextcloud-server-a191b75c3192156c67f45778e05cf88fff42bf50.tar.gz nextcloud-server-a191b75c3192156c67f45778e05cf88fff42bf50.zip |
make it possible to connect to other ocs appstores and other ocs knowledgebase servers.
also make it possible to switch the app store and the knowledgebase off completely.
Diffstat (limited to 'lib/app.php')
-rwxr-xr-x[-rw-r--r--] | lib/app.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/app.php b/lib/app.php index 64cbe8894ea..3daf539aa21 100644..100755 --- a/lib/app.php +++ b/lib/app.php @@ -210,10 +210,13 @@ class OC_App{ public static function getSettingsNavigation(){ $l=new OC_L10N('core'); + $settings = array(); // by default, settings only contain the help menu - $settings = array( - array( "id" => "help", "order" => 1000, "href" => OC_Helper::linkTo( "settings", "help.php" ), "name" => $l->t("Help"), "icon" => OC_Helper::imagePath( "settings", "help.svg" )) - ); + if(OC_Config::getValue('knowledgebaseenabled', true)==true){ + $settings = array( + array( "id" => "help", "order" => 1000, "href" => OC_Helper::linkTo( "settings", "help.php" ), "name" => $l->t("Help"), "icon" => OC_Helper::imagePath( "settings", "help.svg" )) + ); + } // if the user is logged-in if (OC_User::isLoggedIn()) { |