diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-06-26 14:02:20 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-06-26 14:02:20 +0200 |
commit | 5496ca234bf5537ecf44311bcd7c50502c1982e2 (patch) | |
tree | 23601aa978fc5d09cdc44a92ae591b2d66f0da5a /lib/private/appframework/routing | |
parent | 1822bba5e941862323117e2625361098ce729155 (diff) | |
download | nextcloud-server-5496ca234bf5537ecf44311bcd7c50502c1982e2.tar.gz nextcloud-server-5496ca234bf5537ecf44311bcd7c50502c1982e2.zip |
dont strip the s from the resource
Diffstat (limited to 'lib/private/appframework/routing')
-rw-r--r-- | lib/private/appframework/routing/routeconfig.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/appframework/routing/routeconfig.php b/lib/private/appframework/routing/routeconfig.php index 91ea7778d08..634bc888bdb 100644 --- a/lib/private/appframework/routing/routeconfig.php +++ b/lib/private/appframework/routing/routeconfig.php @@ -88,7 +88,7 @@ class RouteConfig { ->method($verb) ->action($handler); - // optionally register requirements for route. This is used to + // optionally register requirements for route. This is used to // tell the route parser how url parameters should be matched if(array_key_exists('requirements', $simpleRoute)) { $router->requirements($simpleRoute['requirements']); @@ -174,7 +174,7 @@ class RouteConfig { * @return string */ private function buildResourceId($resource) { - return '{'.$this->underScoreToCamelCase(rtrim($resource, 's')).'Id}'; + return '{' . $this->underScoreToCamelCase($resource) . 'Id}'; } /** |