changed path to Modules dir. Now is application/Espo/Modules

This commit is contained in:
Taras Machyshyn
2013-11-19 14:14:24 +02:00
parent b2a6363cbd
commit b999d7018d
131 changed files with 17 additions and 17 deletions
+3 -3
View File
@@ -4,8 +4,8 @@ application/config.php
/test.php /test.php
/test2.php /test2.php
application/Espo/Resources/metadata/scopes/CustomTest.json application/Espo/Resources/metadata/scopes/CustomTest.json
application/Modules/Crm/Resources/metadata/scopes/CustomTest.json application/Espo/Modules/Crm/Resources/metadata/scopes/CustomTest.json
application/Espo/Resources/layouts/CustomTest/* application/Espo/Resources/layouts/CustomTest/*
application/Modules/Crm/Resources/layouts/CustomTest/* application/Espo/Modules/Crm/Resources/layouts/CustomTest/*
application/Espo/Resources/metadata/customTest/* application/Espo/Resources/metadata/customTest/*
application/Modules/Crm/Resources/metadata/customTest/* application/Espo/Modules/Crm/Resources/metadata/customTest/*
+1 -1
View File
@@ -33,7 +33,7 @@ class Container
$this->$loadMethod(); $this->$loadMethod();
} else { } else {
//external loader class \Espo\Core\Loaders\<className> or \Custom\Espo\Core\Loaders\<className> with load() method //external loader class \Espo\Core\Loaders\<className> or \Custom\Espo\Core\Loaders\<className> with load() method
$className = '\Custom\Espo\Core\Loaders\\'.ucfirst($name); $className = '\Espo\Custom\Core\Loaders\\'.ucfirst($name);
if (!class_exists($className)) { if (!class_exists($className)) {
$className = '\Espo\Core\Loaders\\'.ucfirst($name); $className = '\Espo\Core\Loaders\\'.ucfirst($name);
} }
+1 -1
View File
@@ -123,7 +123,7 @@ class Layout
$moduleName= $this->getMetadata()->getScopeModuleName($entityName); $moduleName= $this->getMetadata()->getScopeModuleName($entityName);
$path= $this->getLayoutConfig()->corePath; $path= $this->getLayoutConfig()->corePath;
if (!empty($moduleName)) { if ($moduleName !== false) {
$path= str_replace('{*}', $moduleName, $this->getLayoutConfig()->customPath); $path= str_replace('{*}', $moduleName, $this->getLayoutConfig()->customPath);
} }
$path= Util::concatPath($path, $entityName); $path= Util::concatPath($path, $entityName);
+2 -2
View File
@@ -150,7 +150,7 @@ class Metadata
$fullPath= $this->getMetaConfig()->corePath; $fullPath= $this->getMetaConfig()->corePath;
$moduleName= $this->getScopeModuleName($scope); $moduleName= $this->getScopeModuleName($scope);
if (!empty($moduleName)) { if ($moduleName !== false) {
$fullPath= str_replace('{*}', $moduleName, $this->getMetaConfig()->customPath); $fullPath= str_replace('{*}', $moduleName, $this->getMetaConfig()->customPath);
} }
$fullPath= Util::concatPath($fullPath, $type); $fullPath= Util::concatPath($fullPath, $type);
@@ -320,7 +320,7 @@ class Metadata
$moduleName = $this->getScopeModuleName($scopeName); $moduleName = $this->getScopeModuleName($scopeName);
$path = $this->getConfig()->get('espoPath'); $path = $this->getConfig()->get('espoPath');
if (!empty($moduleName)) { if ($moduleName !== false) {
$path = str_replace('{*}', $moduleName, $this->getConfig()->get('espoModulePath')); $path = str_replace('{*}', $moduleName, $this->getConfig()->get('espoModulePath'));
} }
@@ -3,23 +3,23 @@
return array ( return array (
'configPath' => 'application/config.php', 'configPath' => 'application/config.php',
'customDir' => 'application/Custom', 'customDir' => 'application/Espo/Custom',
'cachePath' => 'data/cache', 'cachePath' => 'data/cache',
'defaultsPath' => 'application/Espo/Core/defaults', 'defaultsPath' => 'application/Espo/Core/defaults',
'unsetFileName' => 'unset.json', 'unsetFileName' => 'unset.json',
'espoPath' => 'Espo', 'espoPath' => 'Espo',
'espoModulePath' => 'Modules/{*}', 'espoModulePath' => 'Espo/Modules/{*}',
'espoCustomPath' => 'Custom', 'espoCustomPath' => 'Espo/Custom',
'controllerPath' => 'Controllers', //path for controllers in module 'controllerPath' => 'Controllers', //path for controllers in a module
'metadataConfig' => 'metadataConfig' =>
array ( array (
'name' => 'metadata', 'name' => 'metadata',
'cachePath' => 'data/cache/application', 'cachePath' => 'data/cache/application',
'corePath' => 'application/Espo/Resources/metadata', 'corePath' => 'application/Espo/Resources/metadata',
'customPath' => 'application/Modules/{*}/Resources/metadata', 'customPath' => 'application/Espo/Modules/{*}/Resources/metadata',
'doctrineCache' => 'data/cache/doctrine/metadata', 'doctrineCache' => 'data/cache/doctrine/metadata',
), ),
@@ -27,7 +27,7 @@ return array (
array ( array (
'name' => 'layouts', 'name' => 'layouts',
'corePath' => 'application/Espo/Resources/layouts', 'corePath' => 'application/Espo/Resources/layouts',
'customPath' => 'application/Modules/{*}/Resources/layouts', 'customPath' => 'application/Espo/Modules/{*}/Resources/layouts',
), ),
'languageConfig' => 'languageConfig' =>
@@ -35,7 +35,7 @@ return array (
'name' => '{lang}', 'name' => '{lang}',
'cachePath' => 'data/cache/application/Language', 'cachePath' => 'data/cache/application/Language',
'corePath' => 'application/Espo/Language', 'corePath' => 'application/Espo/Language',
'customPath' => 'application/Modules/{*}/Language', 'customPath' => 'application/Espo/Modules/{*}/Language',
), ),
'defaultPermissions' => 'defaultPermissions' =>

Some files were not shown because too many files have changed in this diff Show More