app.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016, ownCloud, Inc.
  4. *
  5. * @author Christopher Schäpers <kondou@ts.unde.re>
  6. * @author Florin Peter <github@florin-peter.de>
  7. * @author John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  8. * @author Jörn Friedrich Dreyer <jfd@butonic.de>
  9. * @author Victor Dubiniuk <dubiniuk@owncloud.com>
  10. * @author Vincent Petry <pvince81@owncloud.com>
  11. *
  12. * @license AGPL-3.0
  13. *
  14. * This code is free software: you can redistribute it and/or modify
  15. * it under the terms of the GNU Affero General Public License, version 3,
  16. * as published by the Free Software Foundation.
  17. *
  18. * This program is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU Affero General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU Affero General Public License, version 3,
  24. * along with this program. If not, see <http://www.gnu.org/licenses/>
  25. *
  26. */
  27. // register hooks
  28. \OCA\Files_Trashbin\Trashbin::registerHooks();
  29. \OCA\Files\App::getNavigationManager()->add(function () {
  30. $l = \OC::$server->getL10N('files_trashbin');
  31. return [
  32. 'id' => 'trashbin',
  33. 'appname' => 'files_trashbin',
  34. 'script' => 'list.php',
  35. 'order' => 50,
  36. 'name' => $l->t('Deleted files'),
  37. 'classes' => 'pinned',
  38. ];
  39. });