remove unused parameter
This commit is contained in:
parent
55b990b544
commit
dc53788711
|
@ -57,7 +57,7 @@ $linkCheckPlugin = new \OCA\DAV\Files\Sharing\PublicLinkCheckPlugin();
|
|||
|
||||
$server = $serverFactory->createServer($baseuri, $requestUri, $authBackend, function (\Sabre\DAV\Server $server) use ($authBackend, $linkCheckPlugin) {
|
||||
$isAjax = (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest');
|
||||
$federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application('federatedfilesharing');
|
||||
$federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application();
|
||||
$federatedShareProvider = $federatedSharingApp->getFederatedShareProvider();
|
||||
if ($federatedShareProvider->isOutgoingServer2serverShareEnabled() === false && !$isAjax) {
|
||||
// this is what is thrown when trying to access a non-existing share
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
use OCA\FederatedFileSharing\AppInfo\Application;
|
||||
|
||||
$app = new Application('federatedfilesharing');
|
||||
$app = new Application();
|
||||
$federatedShareProvider = $app->getFederatedShareProvider();
|
||||
|
||||
$tmpl = new OCP\Template('federatedfilesharing', 'settings-admin');
|
||||
|
|
|
@ -27,7 +27,7 @@ use OCA\FederatedFileSharing\AppInfo\Application;
|
|||
|
||||
$l = \OC::$server->getL10N('federatedfilesharing');
|
||||
|
||||
$app = new Application('federatedfilesharing');
|
||||
$app = new Application();
|
||||
$federatedShareProvider = $app->getFederatedShareProvider();
|
||||
|
||||
$isIE8 = false;
|
||||
|
|
|
@ -31,7 +31,7 @@ if (!isset($_GET['t'])) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application('federatedfilesharing');
|
||||
$federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application();
|
||||
$federatedShareProvider = $federatedSharingApp->getFederatedShareProvider();
|
||||
|
||||
if ($federatedShareProvider->isOutgoingServer2serverShareEnabled() === false) {
|
||||
|
|
|
@ -46,7 +46,7 @@ class Application extends App {
|
|||
* Controllers
|
||||
*/
|
||||
$container->registerService('ShareController', function (SimpleContainer $c) use ($server) {
|
||||
$federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application('federatedfilesharing');
|
||||
$federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application();
|
||||
return new ShareController(
|
||||
$c->query('AppName'),
|
||||
$c->query('Request'),
|
||||
|
|
|
@ -77,7 +77,7 @@ class OC_Share_Backend_File implements OCP\Share_Backend_File_Dependent {
|
|||
if ($federatedShareProvider) {
|
||||
$this->federatedShareProvider = $federatedShareProvider;
|
||||
} else {
|
||||
$federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application('federatedfilesharing');
|
||||
$federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application();
|
||||
$this->federatedShareProvider = $federatedSharingApp->getFederatedShareProvider();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -99,7 +99,7 @@ API::register(
|
|||
|
||||
// Server-to-Server Sharing
|
||||
if (\OC::$server->getAppManager()->isEnabledForUser('files_sharing')) {
|
||||
$federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application('federatedfilesharing');
|
||||
$federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application();
|
||||
$addressHandler = new \OCA\FederatedFileSharing\AddressHandler(
|
||||
\OC::$server->getURLGenerator(),
|
||||
\OC::$server->getL10N('federatedfilesharing')
|
||||
|
|
Loading…
Reference in New Issue