From f632ec1c944e5de1ece6c8b82a6189fa60a9f8ff Mon Sep 17 00:00:00 2001 From: Marcelo Linhares Castro Date: Tue, 20 Nov 2018 16:34:43 -0200 Subject: [PATCH] Tratando valor do arquivo --- rn/MdEstatisticasColetarRN.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rn/MdEstatisticasColetarRN.php b/rn/MdEstatisticasColetarRN.php index 4c90e12..a9a336f 100644 --- a/rn/MdEstatisticasColetarRN.php +++ b/rn/MdEstatisticasColetarRN.php @@ -113,8 +113,15 @@ class MdEstatisticasColetarRN extends InfraRN break; } } + + //vamos retirar a parte inicial do dir que nao interessa + $novo_valor = $value; + $pos=MdEstatisticasColetarRN::bolArrFindItem(array('infra/infra', 'sei/', 'sip/'), $novo_valor); + if($pos !== false){ + $novo_valor = substr($novo_valor, $pos); + } - $b[] = array('file' => $value, + $b[] = array('file' => $novo_valor, 'hash' => hash_file('sha256', $value), 'modulo' => $m, 'versaoModulo' => $version, -- libgit2 0.21.2