Skip to content

Commit

Permalink
fix bugj
Browse files Browse the repository at this point in the history
  • Loading branch information
garming committed Sep 5, 2018
1 parent e35b5c6 commit d25b567
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions res/tangram-module-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
"required": [
"name",
"description",
"autoload",
"module"
"autoload"
]
}
3 changes: 2 additions & 1 deletion src/Tangram/Config/ModuleConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public function __construct(string $module,string $absoluteModulePath = null) {
}
$config = $file->read();
$this->name = $config['name'];
$this->module = $config['module'];
$module = explode("/",$this->name);
$this->module = isset($config['module']) ? $config['module'] : end($module);
$this->description = $config['description'];
$this->keywords = $config['keywords'];
$this->type = $config['type'];
Expand Down

0 comments on commit d25b567

Please sign in to comment.