From 3da0cd1fd5b4453fb37cb7eaefb3e62ba25ca4fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Mon, 13 Jul 2015 16:29:26 +0200 Subject: [PATCH] Fix the app --- appinfo/app.php | 2 -- index.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/appinfo/app.php b/appinfo/app.php index 9f9f7e05..82a380ed 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -29,8 +29,6 @@ use OCA\Documents\Config; $app = new Application(); $c = $app->getContainer(); -\OCP\App::register(['order' => 70, 'id' => 'documents', 'name' => 'Documents']); -//\OCP\App::registerAdmin('documents', 'settings'); \OCP\App::registerAdmin('documents', 'admin'); \OCP\App::registerPersonal('documents', 'personal'); diff --git a/index.php b/index.php index 322b12e0..b9eda8b5 100644 --- a/index.php +++ b/index.php @@ -50,6 +50,6 @@ $tmpl->assign('useUnstable', $unstable); $tmpl->assign('uploadMaxFilesize', $maxUploadFilesize); $tmpl->assign('uploadMaxHumanFilesize', \OCP\Util::humanFileSize($maxUploadFilesize)); $tmpl->assign('savePath', $savePath); -$tmpl->assign("allowShareWithLink", \OC_Appconfig::getValue('core', 'shareapi_allow_links', 'yes')); +$tmpl->assign("allowShareWithLink", \OC::$server->getAppConfig()->getValue('core', 'shareapi_allow_links', 'yes')); $tmpl->printPage();