issue #0001585 : Debug couleur
This commit is contained in:
parent
e871adbc69
commit
117a39a290
@ -307,19 +307,18 @@ class RapportComment
|
||||
$pattern = '/COULEUR\((.*)\)/i';
|
||||
///Detection couleur
|
||||
if ( preg_match($pattern, $content, $matches) ) {
|
||||
//FB::log($content, 'DETECTION Couleurs');
|
||||
$listeCouleurs = $matches[1];
|
||||
Zend_Registry::get('firebug')->info('DETECTION Couleurs');
|
||||
$listeCouleurs = $matches[1];
|
||||
//Récupération des couleurs
|
||||
$pattern = '/([a-z0-9]{3,4})/i';
|
||||
if ( preg_match_all($pattern, $listeCouleurs, $matches) ) {
|
||||
//FB::log($matches, 'matches');
|
||||
Zend_Registry::get('firebug')->info($matches);
|
||||
$nbCouleurs = count($matches[1]);
|
||||
for($i=0;$i<$nbCouleurs;$i++){
|
||||
$this->graphCouleurs[] = $assocNomCouleurs[$matches[1][$i]];
|
||||
}
|
||||
}
|
||||
}
|
||||
//FB::log($graphCouleurs,' DETECTION : graphCouleurs');
|
||||
return $this->graphCouleurs;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user