Skip to content

Commit

Permalink
Dev: Remove code duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Oct 16, 2017
1 parent 2407d29 commit 50b2100
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions application/models/TemplateConfiguration.php
Expand Up @@ -326,10 +326,7 @@ public static function importManifest($sTemplateName, $aDatas=array() )
$aDatas['files_folder'] = $oEditTemplateDb->files_folder;

// Import options from global configuration.
$options = TemplateConfiguration::model()->find(
'sid IS NULL AND gsid IS NULL AND uid IS NULL AND template_name = :template_name',
['template_name' => $aDatas['extends']]
);
$options = self::getInstanceFromTemplateName($aDatas['extends']);
if (empty($options)) {
throw new Exception('Could not find global options for template ' . $aDatas['extends']);
} else {
Expand Down

0 comments on commit 50b2100

Please sign in to comment.