Skip to content

Commit

Permalink
Dev: don't throw errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jun 22, 2018
1 parent 26cfe78 commit 5ea7153
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions application/models/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,16 @@ public function checkTemplateExtends()
if (!empty($this->extends)) {
$oRTemplate = self::model()->findByPk($this->extends);
if (empty($oRTemplate)) {
throw new Exception(

// Why? it blocks the user at login screen....
// It should return false and show a nice warning message.

/*throw new Exception(
sprintf(
'Extended template "%s" is not installed.',
$this->extends
)
);
);*/
}
}
return true;
Expand Down

0 comments on commit 5ea7153

Please sign in to comment.