app.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016, ownCloud, Inc.
  4. *
  5. * @author Bart Visscher <bartv@thisnet.nl>
  6. * @author Christopher Schäpers <kondou@ts.unde.re>
  7. * @author Florin Peter <github@florin-peter.de>
  8. * @author Robin Appelman <robin@icewind.nl>
  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. $l = \OC::$server->getL10N('files_trashbin');
  28. // register hooks
  29. \OCA\Files_Trashbin\Trashbin::registerHooks();
  30. \OCA\Files\App::getNavigationManager()->add(
  31. array(
  32. "id" => 'trashbin',
  33. "appname" => 'files_trashbin',
  34. "script" => 'list.php',
  35. "order" => 50,
  36. "name" => $l->t('Deleted files')
  37. )
  38. );