Commit d4b9df24b4fbbe0c90ce3f68b7e9323b9cd0c187

Authored by eduardo.praxedes
1 parent 7371c43c

Nome do módulo de forma dinâmica no arquivo PENIntegração

Showing 1 changed file with 6 additions and 15 deletions   Show diff stats
PENIntegracao.php
... ... @@ -174,21 +174,12 @@ class PENIntegracao extends SeiIntegracao {
174 174 }
175 175  
176 176 public static function getDiretorio() {
177   -
178   -// if (empty(static::$strDiretorio)) {
179   -//
180   -// $arrModulos = ConfiguracaoSEI::getInstance()->getValor('SEI', 'Modulos');
181   -//
182   -// $strModuloPath = realpath($arrModulos['PENIntegracao']);
183   -//
184   -//
185   -//
186   -// static::$strDiretorio = str_replace(realpath(__DIR__ . '/../..'), '', $strModuloPath);
187   -// static::$strDiretorio = preg_replace('/^\//', '', static::$strDiretorio);
188   -// }
189   -//
190   -// return static::$strDiretorio;
191   - return "modulos/pen";
  177 +
  178 +
  179 + $arrConfig = ConfiguracaoSEI::getInstance()->getValor('SEI', 'Modulos');
  180 + $strModulo = $arrConfig['PENIntegracao'];
  181 +
  182 + return "modulos/".$strModulo;
192 183 }
193 184  
194 185 public function processarControlador($strAcao) {
... ...