Skip to content
Snippets Groups Projects
Commit c3bca4ab authored by Daniel Berthereau's avatar Daniel Berthereau
Browse files

Updated Generic module.

parent d9780a61
Branches
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ abstract class AbstractModule extends \Omeka\Module\AbstractModule ...@@ -77,7 +77,7 @@ abstract class AbstractModule extends \Omeka\Module\AbstractModule
} }
if (!$this->checkAllResourcesToInstall()) { if (!$this->checkAllResourcesToInstall()) {
$message = new Message( $message = new Message(
$translator->translate('This module has resources that connot be installed.') // @translate $translator->translate('This module has resources that cannot be installed.') // @translate
); );
throw new ModuleCannotInstallException((string) $message); throw new ModuleCannotInstallException((string) $message);
} }
...@@ -181,7 +181,7 @@ abstract class AbstractModule extends \Omeka\Module\AbstractModule ...@@ -181,7 +181,7 @@ abstract class AbstractModule extends \Omeka\Module\AbstractModule
return ''; return '';
} }
$form = $services->get('FormElementManager')->get($formClass); $form = $formManager->get($formClass);
$form->init(); $form->init();
$form->setData($data); $form->setData($data);
$form->prepare(); $form->prepare();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment