1
0

BxBaseModTemplateInstaller.php 650 B

123456789101112131415161718192021222324252627282930
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup BaseTemplate Base classes for template modules
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxBaseModTemplateInstaller extends BxDolStudioInstaller
  12. {
  13. function __construct($aConfig)
  14. {
  15. parent::__construct($aConfig);
  16. }
  17. function enable($aParams)
  18. {
  19. $aResult = parent::enable($aParams);
  20. if ($aResult['result'] && !getParam('template'))
  21. setParam('template', $this->_aConfig['home_uri']);
  22. return $aResult;
  23. }
  24. }
  25. /** @} */