Skip to content
Prev Previous commit
Next Next commit
fix: fixup for lint
Signed-off-by: Josh <[email protected]>
  • Loading branch information
joshtrichards authored Aug 18, 2025
commit b9300824263243ba01f83b0519a2be246de9f6f3
6 changes: 3 additions & 3 deletions remote.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function resolveService(string $service): string {
$parts = explode('/', $file, 2);
$app = $parts[0];
\OC::$REQUESTEDAPP = $app;

// Load all required applications
$appManager = Server::get(IAppManager::class);
$appManager->loadApps(['authentication']);
Expand All @@ -93,10 +93,10 @@ function resolveService(string $service): string {
if (!$appManager->isEnabledForUser($app)) {
throw new RemoteException('App not installed: ' . $app, 503); // or maybe 404?
}

// Load the app
$appManager->loadApp($app);

$baseuri = OC::$WEBROOT . '/remote.php/' . $service . '/';
require_once $file;
} catch (Exception $ex) {
Expand Down
Loading