Skip to content

Commit eca727b

Browse files
committed
Fix routed bug
1 parent 477830c commit eca727b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Assets.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ protected function routed($extension)
150150
$route = empty($route)? $segment : $route . '/' . $segment; //prevents double slashes
151151

152152
// check for custom assets from config first
153-
if (! empty($this->routes[$route]) ):
154-
foreach ($this->routes[$route] as $item):
153+
if (! empty($this->config->routes[$route]) ):
154+
foreach ($this->config->routes[$route] as $item):
155155
// make sure the extensions match
156156
if (is_string($item) && strtolower(pathinfo($item, PATHINFO_EXTENSION))==strtolower($extension)):
157157
$files[] = $item;

0 commit comments

Comments
 (0)