diff options
author | Joas Schilling <coding@schilljs.com> | 2020-03-23 16:33:11 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-04-18 11:21:28 +0200 |
commit | 3f8168b6e5c0fc14709b713d9ca4943f9df70273 (patch) | |
tree | 4f8e0a487f6a1c50c041ac96da2f024b86ab1532 /lib/public/AppFramework | |
parent | 64196ddd19684b6a218428eeb6ee370d0514b68c (diff) | |
download | nextcloud-server-3f8168b6e5c0fc14709b713d9ca4943f9df70273.tar.gz nextcloud-server-3f8168b6e5c0fc14709b713d9ca4943f9df70273.zip |
Allow some apps to have root URLs in their own routing file
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/AppFramework')
-rw-r--r-- | lib/public/AppFramework/AuthPublicShareController.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/public/AppFramework/AuthPublicShareController.php b/lib/public/AppFramework/AuthPublicShareController.php index 1170819d5ec..989067bdf43 100644 --- a/lib/public/AppFramework/AuthPublicShareController.php +++ b/lib/public/AppFramework/AuthPublicShareController.php @@ -165,9 +165,7 @@ abstract class AuthPublicShareController extends PublicShareController { private function getRoute(string $function): string { $app = strtolower($this->appName); $class = (new \ReflectionClass($this))->getShortName(); - if ($this->appName === 'files_sharing') { - $class = strtolower($class); - } elseif (substr($class, -10) === 'Controller') { + if (substr($class, -10) === 'Controller') { $class = substr($class, 0, -10); } return $app .'.'. $class .'.'. $function; |