remove unused parameter
This commit is contained in:
parent
55b990b544
commit
dc53788711
7 changed files with 7 additions and 7 deletions
|
@ -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) {
|
$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');
|
$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();
|
$federatedShareProvider = $federatedSharingApp->getFederatedShareProvider();
|
||||||
if ($federatedShareProvider->isOutgoingServer2serverShareEnabled() === false && !$isAjax) {
|
if ($federatedShareProvider->isOutgoingServer2serverShareEnabled() === false && !$isAjax) {
|
||||||
// this is what is thrown when trying to access a non-existing share
|
// this is what is thrown when trying to access a non-existing share
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
use OCA\FederatedFileSharing\AppInfo\Application;
|
use OCA\FederatedFileSharing\AppInfo\Application;
|
||||||
|
|
||||||
$app = new Application('federatedfilesharing');
|
$app = new Application();
|
||||||
$federatedShareProvider = $app->getFederatedShareProvider();
|
$federatedShareProvider = $app->getFederatedShareProvider();
|
||||||
|
|
||||||
$tmpl = new OCP\Template('federatedfilesharing', 'settings-admin');
|
$tmpl = new OCP\Template('federatedfilesharing', 'settings-admin');
|
||||||
|
|
|
@ -27,7 +27,7 @@ use OCA\FederatedFileSharing\AppInfo\Application;
|
||||||
|
|
||||||
$l = \OC::$server->getL10N('federatedfilesharing');
|
$l = \OC::$server->getL10N('federatedfilesharing');
|
||||||
|
|
||||||
$app = new Application('federatedfilesharing');
|
$app = new Application();
|
||||||
$federatedShareProvider = $app->getFederatedShareProvider();
|
$federatedShareProvider = $app->getFederatedShareProvider();
|
||||||
|
|
||||||
$isIE8 = false;
|
$isIE8 = false;
|
||||||
|
|
|
@ -31,7 +31,7 @@ if (!isset($_GET['t'])) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application('federatedfilesharing');
|
$federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application();
|
||||||
$federatedShareProvider = $federatedSharingApp->getFederatedShareProvider();
|
$federatedShareProvider = $federatedSharingApp->getFederatedShareProvider();
|
||||||
|
|
||||||
if ($federatedShareProvider->isOutgoingServer2serverShareEnabled() === false) {
|
if ($federatedShareProvider->isOutgoingServer2serverShareEnabled() === false) {
|
||||||
|
|
|
@ -46,7 +46,7 @@ class Application extends App {
|
||||||
* Controllers
|
* Controllers
|
||||||
*/
|
*/
|
||||||
$container->registerService('ShareController', function (SimpleContainer $c) use ($server) {
|
$container->registerService('ShareController', function (SimpleContainer $c) use ($server) {
|
||||||
$federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application('federatedfilesharing');
|
$federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application();
|
||||||
return new ShareController(
|
return new ShareController(
|
||||||
$c->query('AppName'),
|
$c->query('AppName'),
|
||||||
$c->query('Request'),
|
$c->query('Request'),
|
||||||
|
|
|
@ -77,7 +77,7 @@ class OC_Share_Backend_File implements OCP\Share_Backend_File_Dependent {
|
||||||
if ($federatedShareProvider) {
|
if ($federatedShareProvider) {
|
||||||
$this->federatedShareProvider = $federatedShareProvider;
|
$this->federatedShareProvider = $federatedShareProvider;
|
||||||
} else {
|
} else {
|
||||||
$federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application('federatedfilesharing');
|
$federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application();
|
||||||
$this->federatedShareProvider = $federatedSharingApp->getFederatedShareProvider();
|
$this->federatedShareProvider = $federatedSharingApp->getFederatedShareProvider();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,7 +99,7 @@ API::register(
|
||||||
|
|
||||||
// Server-to-Server Sharing
|
// Server-to-Server Sharing
|
||||||
if (\OC::$server->getAppManager()->isEnabledForUser('files_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(
|
$addressHandler = new \OCA\FederatedFileSharing\AddressHandler(
|
||||||
\OC::$server->getURLGenerator(),
|
\OC::$server->getURLGenerator(),
|
||||||
\OC::$server->getL10N('federatedfilesharing')
|
\OC::$server->getL10N('federatedfilesharing')
|
||||||
|
|
Loading…
Reference in a new issue