File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/code/Magento/Backend/Model Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -188,10 +188,6 @@ public function getUrl($routePath = null, $routeParams = null)
188
188
return $ routePath ;
189
189
}
190
190
191
- if (!is_array ($ routeParams )) {
192
- $ routeParams = [];
193
- }
194
-
195
191
$ cacheSecretKey = false ;
196
192
if (isset ($ routeParams ['_cache_secret_key ' ])) {
197
193
unset($ routeParams ['_cache_secret_key ' ]);
@@ -207,6 +203,10 @@ public function getUrl($routePath = null, $routeParams = null)
207
203
$ controllerName = $ this ->_getControllerName (self ::DEFAULT_CONTROLLER_NAME );
208
204
$ actionName = $ this ->_getActionName (self ::DEFAULT_ACTION_NAME );
209
205
if (!isset ($ routeParams [self ::SECRET_KEY_PARAM_NAME ])) {
206
+ if (!is_array ($ routeParams )) {
207
+ $ routeParams = [];
208
+ }
209
+
210
210
$ secretKey = $ cacheSecretKey
211
211
? "\${$ routeName }/ {$ controllerName }/ {$ actionName }\$"
212
212
: $ this ->getSecretKey ($ routeName , $ controllerName , $ actionName );
You can’t perform that action at this time.
0 commit comments