We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 97debae + 2f63533 commit b68b673Copy full SHA for b68b673
1 file changed
lib/public/AppFramework/AuthPublicShareController.php
@@ -156,14 +156,19 @@ final public function getAuthenticationRedirect(string $redirect): RedirectRespo
156
);
157
}
158
159
+
160
/**
161
* @since 14.0.0
162
*/
163
private function getRoute(string $function): string {
164
$app = strtolower($this->appName);
- $class = strtolower((new \ReflectionClass($this))->getShortName());
165
-
166
- return $app . '.' . $class . '.' . $function;
+ $class = (new \ReflectionClass($this))->getShortName();
+ if ($this->appName === 'files_sharing') {
167
+ $class = strtolower($class);
168
+ } else if (substr($class, -10) === 'Controller') {
169
+ $class = substr($class, 0, -10);
170
+ }
171
+ return $app .'.'. $class .'.'. $function;
172
173
174
0 commit comments