From 58255430df861fa90597ebe8817dd560be025fbd Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Wed, 29 Jan 2014 15:38:06 +0100 Subject: [PATCH] change external schema path on generating new module. Fix #197 --- core/lib/Thelia/Command/ModuleGenerateCommand.php | 1 - core/lib/Thelia/Command/Skeleton/Module/schema.xml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/lib/Thelia/Command/ModuleGenerateCommand.php b/core/lib/Thelia/Command/ModuleGenerateCommand.php index 7657f1d89..c6d8bf13f 100644 --- a/core/lib/Thelia/Command/ModuleGenerateCommand.php +++ b/core/lib/Thelia/Command/ModuleGenerateCommand.php @@ -106,7 +106,6 @@ class ModuleGenerateCommand extends BaseModuleGenerate $schemaContent = file_get_contents($skeletonDir . "schema.xml"); - $schemaContent = str_replace("%%CONFIG_DIR%%", THELIA_CONF_DIR, $schemaContent); $schemaContent = str_replace("%%NAMESPACE%%", $this->module, $schemaContent); file_put_contents($this->moduleDirectory . DIRECTORY_SEPARATOR . "Config". DIRECTORY_SEPARATOR . "schema.xml", $schemaContent); diff --git a/core/lib/Thelia/Command/Skeleton/Module/schema.xml b/core/lib/Thelia/Command/Skeleton/Module/schema.xml index 3fcba0184..0aa692048 100644 --- a/core/lib/Thelia/Command/Skeleton/Module/schema.xml +++ b/core/lib/Thelia/Command/Skeleton/Module/schema.xml @@ -3,5 +3,5 @@ - +