Skip to content

Commit

Permalink
Fix closure
Browse files Browse the repository at this point in the history
  • Loading branch information
joanrodas authored Dec 28, 2023
1 parent c92f9eb commit 34bb570
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PluboRoutes/Route/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ public function hasTemplateCallback()
public function getTemplate()
{
$template_name = $this->template;
if($this->hasTemplateCallback()) return $template_name;

$custom_directory = $this->config['template_path'] ?? '';

// Check if a custom directory is provided
Expand Down

0 comments on commit 34bb570

Please sign in to comment.