Skip to content

Commit

Permalink
Fixed issue #12881: Exception on trying to view template list
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Nov 10, 2017
1 parent 656180a commit 70a9504
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/models/TemplateConfiguration.php
Expand Up @@ -634,7 +634,10 @@ protected function getTemplateForPath($oRTemplate, $sPath )
while (empty($oRTemplate->template->$sPath)){
$oMotherTemplate = $oRTemplate->oMotherTemplate;
if(!($oMotherTemplate instanceof TemplateConfiguration)){
throw new Exception("can't find a template for template '{$oRTemplate->template_name}' in path '$sPath'.");
//throw new Exception("can't find a template for template '{$oRTemplate->template_name}' for path '$sPath'.");
TemplateConfiguration::uninstall($this->template_name);
Yii::app()->setFlashMessage(sprintf(gT("%s has been uninstall because it's not compatible with LS3."), $this->template_name), 'error');
Yii::app()->getController()->redirect(array("admin/templateoptions"));
break;
}
$oRTemplate = $oMotherTemplate;
Expand Down

0 comments on commit 70a9504

Please sign in to comment.