Skip to content

Commit

Permalink
Like so?
Browse files Browse the repository at this point in the history
Or the second try inside the first catch block?
Or an empty first catch block?
  • Loading branch information
hmic authored Aug 30, 2017
1 parent bcc1e0e commit ccb53d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/View/CrudView.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,12 @@ protected function _getViewFileName($name = null)
} catch (MissingTemplateException $exception) {
$this->subDir = null;
$this->templatePath = 'Scaffold';

}
try {
return parent::_getViewFileName($this->template);
} catch (MissingTemplateException $exception) {
return parent::_getViewFileName($name);
}

}
}

0 comments on commit ccb53d0

Please sign in to comment.