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();