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