File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ protected function gather(): array
170170 foreach ($ this ->handlers as $ class )
171171 {
172172 $ handler = new $ class ($ this ->config );
173- $ this ->paths = array_merge ($ handler ->gather ($ this ->route ), $ this ->paths );
173+ $ this ->paths = array_merge ($ handler ->gather ($ this ->route ), $ this ->paths );
174174 }
175175
176176 $ this ->paths = array_unique ($ this ->paths );
@@ -277,16 +277,16 @@ protected function sanitizeRoute()
277277 // Clean up slashes
278278 $ this ->route = trim ($ this ->route , '/ ' );
279279
280- // Verify for {locale}
281- if (Config::get ('App ' )->negotiateLocale )
282- {
283- $ route = explode ('/ ' , $ this ->route );
284- if (count ($ route ) && $ route [0 ] == Services::request ()->getLocale ())
285- {
286- unset($ route [0 ]);
287- }
288- $ this ->route = implode ('/ ' ,$ route );
289- }
280+ // Verify for {locale}
281+ if (Config::get ('App ' )->negotiateLocale )
282+ {
283+ $ route = explode ('/ ' , $ this ->route );
284+ if (count ($ route ) && $ route [0 ] == Services::request ()->getLocale ())
285+ {
286+ unset($ route [0 ]);
287+ }
288+ $ this ->route = implode ('/ ' ,$ route );
289+ }
290290
291291 // If the route is empty then assume the default controller
292292
You can’t perform that action at this time.
0 commit comments