mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #39217 from shdehnavi/replace_substr_call_in_lib_public
This commit is contained in:
commit
ead047153a
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,7 @@ abstract class AuthPublicShareController extends PublicShareController {
|
|||
private function getRoute(string $function): string {
|
||||
$app = strtolower($this->appName);
|
||||
$class = (new \ReflectionClass($this))->getShortName();
|
||||
if (substr($class, -10) === 'Controller') {
|
||||
if (str_ends_with($class, 'Controller')) {
|
||||
$class = substr($class, 0, -10);
|
||||
}
|
||||
return $app .'.'. $class .'.'. $function;
|
||||
|
|
|
|||
Loading…
Reference in a new issue