diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-04-21 16:00:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 16:00:34 +0200 |
commit | 8f650feedec0555c294cd7b242b6519c346b3bc5 (patch) | |
tree | 3afa3396d7508d43bc949b15f5310dd96fd706a6 /lib/public/AppFramework/AuthPublicShareController.php | |
parent | 613f0f2c0c2f07ad084a64f85debe9f6845b78f2 (diff) | |
parent | 1b93d5f1db6e2c9931f62c96c2dd60b7a2251ce9 (diff) | |
download | nextcloud-server-8f650feedec0555c294cd7b242b6519c346b3bc5.tar.gz nextcloud-server-8f650feedec0555c294cd7b242b6519c346b3bc5.zip |
Merge pull request #20114 from nextcloud/techdebt/noid/allow-some-apps-to-have-root-urls
Allow some apps to have root URLs in their own routing file
Diffstat (limited to 'lib/public/AppFramework/AuthPublicShareController.php')
-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; |