Subversion Repositories Applications.framework

Compare Revisions

Regard whitespace Rev 167 → Rev 168

/trunk/framework/Controleur.php
136,10 → 136,8
*/
protected function verifierEtReencoderTableauRequete() {
if(Config::get('sortie_encodage') != Config::get('appli_encodage')) {
 
$_POST = $this->encoderTableau($_POST, Config::get('appli_encodage'),Config::get('sortie_encodage'));
$_GET = $this->encoderTableau($_GET, Config::get('appli_encodage'),Config::get('sortie_encodage'));
 
}
}
 
152,15 → 150,11
*
*/
final protected function encoderTableau($tableau,$encodage_sortie,$encodage_entree = null) {
 
if (is_array($tableau)) {
 
foreach ($tableau as $cle => $valeur) {
 
if (is_array($valeur)) {
$tableau[$cle] = $this->encoderTableau($tableau[$cle]);
}
else {
} else {
$tableau[$cle] = mb_convert_encoding($valeur,$encodage_sortie,$encodage_entree);
}
}