Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2015-08-26 20:16:53 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2015-08-27 01:27:06 +0300
commit58725da687dd5c15e83d7242bdafd8bf5d0321e4 (patch)
tree0e36aa0bdea78e7cb14360828a0f78f1008d4849 /admin.php
parent8897dda9abcda72052ce82a6f81399ef218e61a9 (diff)
Remove deprecated API usage. Step 2
Diffstat (limited to 'admin.php')
-rw-r--r--admin.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/admin.php b/admin.php
index 8890c1f3..9816fa76 100644
--- a/admin.php
+++ b/admin.php
@@ -2,10 +2,9 @@
namespace OCA\Documents;
-\OCP\Util::addScript('documents', 'admin');
+use \OCA\Documents\AppInfo\Application;
-$tmpl = new \OCP\Template('documents', 'admin');
-$tmpl->assign('converter', Config::getConverter());
-$tmpl->assign('converter_url', Config::getConverterUrl());
+$app = new Application();
+$response = $app->getContainer()->query('\OCA\Documents\Controller\SettingsController')->adminIndex();
+return $response->render();
-return $tmpl->fetchPage();