diff options
author | Robin Appelman <robin@icewind.nl> | 2016-07-22 15:20:51 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-07-22 15:20:51 +0200 |
commit | 2e3114cc28b44468d449838c3b75ed7e4e5decea (patch) | |
tree | 2b62a1aca17e8c996a31565f484ae7d0b1f55ea8 /apps/files/appinfo | |
parent | b94ff97a77be3947e62373cd4c6b75d7dfe5e5cc (diff) | |
download | nextcloud-server-2e3114cc28b44468d449838c3b75ed7e4e5decea.tar.gz nextcloud-server-2e3114cc28b44468d449838c3b75ed7e4e5decea.zip |
Add recent file listing
Diffstat (limited to 'apps/files/appinfo')
-rw-r--r-- | apps/files/appinfo/app.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/apps/files/appinfo/app.php b/apps/files/appinfo/app.php index cc86e9bf270..850c335c27d 100644 --- a/apps/files/appinfo/app.php +++ b/apps/files/appinfo/app.php @@ -28,6 +28,7 @@ */ \OCP\App::registerAdmin('files', 'admin'); +$l = \OC::$server->getL10N('files'); \OC::$server->getNavigationManager()->add(function () { $urlGenerator = \OC::$server->getURLGenerator(); @@ -49,8 +50,7 @@ $templateManager->registerTemplate('application/vnd.oasis.opendocument.presentat $templateManager->registerTemplate('application/vnd.oasis.opendocument.text', 'core/templates/filetemplates/template.odt'); $templateManager->registerTemplate('application/vnd.oasis.opendocument.spreadsheet', 'core/templates/filetemplates/template.ods'); -\OCA\Files\App::getNavigationManager()->add(function () { - $l = \OC::$server->getL10N('files'); +\OCA\Files\App::getNavigationManager()->add(function () use ($l) { return [ 'id' => 'files', 'appname' => 'files', @@ -60,6 +60,16 @@ $templateManager->registerTemplate('application/vnd.oasis.opendocument.spreadshe ]; }); +\OCA\Files\App::getNavigationManager()->add(function () use ($l) { + return [ + 'id' => 'recent', + 'appname' => 'files', + 'script' => 'recentlist.php', + 'order' => 2, + 'name' => $l->t('Recent'), + ]; +}); + \OC::$server->getActivityManager()->registerExtension(function() { return new \OCA\Files\Activity( \OC::$server->query('L10NFactory'), |