colissimo module

This commit is contained in:
Etienne Roudeix
2013-11-14 12:03:28 +01:00
parent fa127ed4f0
commit ff57fe3a5c
2 changed files with 7 additions and 1 deletions

View File

@@ -44,10 +44,16 @@ class Module extends AbstractSmartyPlugin
if (false !== $location = $this->getParam($params, 'location', false)) { if (false !== $location = $this->getParam($params, 'location', false)) {
$moduleLimit = $this->getParam($params, 'module', null);
$modules = ModuleQuery::getActivated(); $modules = ModuleQuery::getActivated();
foreach ($modules as $module) { foreach ($modules as $module) {
if(null !== $moduleLimit && $moduleLimit != $module->getCode()) {
continue;
}
$file = sprintf("%s/%s/AdminIncludes/%s.html", THELIA_MODULE_DIR, $module->getBaseDir(), $location); $file = sprintf("%s/%s/AdminIncludes/%s.html", THELIA_MODULE_DIR, $module->getBaseDir(), $location);
if (file_exists($file)) { if (file_exists($file)) {

View File

@@ -17,7 +17,7 @@
</ul> </ul>
</div> </div>
{module_include location='module_configuration'} {module_include location='module_configuration' module=$module_code}
</div> </div>
</div> </div>