diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2015-08-26 20:16:53 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2015-08-27 01:27:06 +0300 |
commit | 58725da687dd5c15e83d7242bdafd8bf5d0321e4 (patch) | |
tree | 0e36aa0bdea78e7cb14360828a0f78f1008d4849 /admin.php | |
parent | 8897dda9abcda72052ce82a6f81399ef218e61a9 (diff) |
Remove deprecated API usage. Step 2
Diffstat (limited to 'admin.php')
-rw-r--r-- | admin.php | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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(); |