diff --git a/wa-system/webasyst/lib/cli/webasystCreateSystemplugin.cli.php b/wa-system/webasyst/lib/cli/webasystCreateSystemplugin.cli.php index fe59361d6..03f3d9fca 100644 --- a/wa-system/webasyst/lib/cli/webasystCreateSystemplugin.cli.php +++ b/wa-system/webasyst/lib/cli/webasystCreateSystemplugin.cli.php @@ -103,7 +103,7 @@ protected function createClass($file) return str_replace($this->template_id, $this->plugin_id, $file); } - protected function createConfig() + protected function createConfig($params = array()) { return array( 'name' => empty($params['name']) ? ucfirst($this->plugin_id) : $params['name'], @@ -116,13 +116,13 @@ protected function createConfig() protected function create($params = array()) { - $config = $this->createConfig(); + $config = $this->createConfig($params); $structure = array( 'lib/classes', 'lib/vendors', 'lib/config/plugin.php' => $config, - //TODO add plugin's images + 'img' ); $files = array( @@ -152,7 +152,7 @@ protected function create($params = array()) } $this->createStructure($structure); - $this->protect(array('lib', 'lib/config')); + $this->protect(array('lib', 'templates')); return $config; }