From d4b9df24b4fbbe0c90ce3f68b7e9323b9cd0c187 Mon Sep 17 00:00:00 2001 From: eduardo.praxedes Date: Fri, 25 Nov 2016 19:41:06 -0200 Subject: [PATCH] Nome do módulo de forma dinâmica no arquivo PENIntegração --- PENIntegracao.php | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/PENIntegracao.php b/PENIntegracao.php index 09e7b04..7be035a 100644 --- a/PENIntegracao.php +++ b/PENIntegracao.php @@ -174,21 +174,12 @@ class PENIntegracao extends SeiIntegracao { } public static function getDiretorio() { - -// if (empty(static::$strDiretorio)) { -// -// $arrModulos = ConfiguracaoSEI::getInstance()->getValor('SEI', 'Modulos'); -// -// $strModuloPath = realpath($arrModulos['PENIntegracao']); -// -// -// -// static::$strDiretorio = str_replace(realpath(__DIR__ . '/../..'), '', $strModuloPath); -// static::$strDiretorio = preg_replace('/^\//', '', static::$strDiretorio); -// } -// -// return static::$strDiretorio; - return "modulos/pen"; + + + $arrConfig = ConfiguracaoSEI::getInstance()->getValor('SEI', 'Modulos'); + $strModulo = $arrConfig['PENIntegracao']; + + return "modulos/".$strModulo; } public function processarControlador($strAcao) { -- libgit2 0.21.2