Commit f632ec1c944e5de1ece6c8b82a6189fa60a9f8ff
1 parent
0419fb06
Exists in
master
and in
1 other branch
Tratando valor do arquivo
Showing
1 changed file
with
8 additions
and
1 deletions
Show diff stats
rn/MdEstatisticasColetarRN.php
| ... | ... | @@ -113,8 +113,15 @@ class MdEstatisticasColetarRN extends InfraRN |
| 113 | 113 | break; |
| 114 | 114 | } |
| 115 | 115 | } |
| 116 | + | |
| 117 | + //vamos retirar a parte inicial do dir que nao interessa | |
| 118 | + $novo_valor = $value; | |
| 119 | + $pos=MdEstatisticasColetarRN::bolArrFindItem(array('infra/infra', 'sei/', 'sip/'), $novo_valor); | |
| 120 | + if($pos !== false){ | |
| 121 | + $novo_valor = substr($novo_valor, $pos); | |
| 122 | + } | |
| 116 | 123 | |
| 117 | - $b[] = array('file' => $value, | |
| 124 | + $b[] = array('file' => $novo_valor, | |
| 118 | 125 | 'hash' => hash_file('sha256', $value), |
| 119 | 126 | 'modulo' => $m, |
| 120 | 127 | 'versaoModulo' => $version, | ... | ... |