| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 16 | public function handle($request, Closure $next) |
||
| 17 | { |
||
| 18 | if ($request->query('tmpl')) { |
||
| 19 | $finder = app('theme.view.finder'); |
||
| 20 | $basePath = config('theme.path', base_path('themes')) . DIRECTORY_SEPARATOR . $request->query('tmpl'); |
||
| 21 | $finder->setBasePath($basePath); |
||
| 22 | } |
||
| 23 | |||
| 24 | return $next($request); |
||
| 25 | } |
||
| 26 | } |
||
| 27 |