Subversion Repositories Applications.gtt

Rev

Rev 65 | Rev 104 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 65 Rev 95
Line 227... Line 227...
227
			if ('<!-- BEGIN sql -->' == substr($aso_erreur['message'], 0, 18)) {
227
			if ('<!-- BEGIN sql -->' == substr($aso_erreur['message'], 0, 18)) {
228
				$retour .= $aso_erreur['message'];
228
				$retour .= $aso_erreur['message'];
229
				continue;
229
				continue;
230
			}
230
			}
231
			// Nous testons les erreurs PEAR pour ne pas en tenir compte
231
			// Nous testons les erreurs PEAR pour ne pas en tenir compte
232
			if (!GTT_DEBOGAGE_PEAR && stristr($aso_erreur['fichier'],GTT_DEBOGAGE_PEAR_CHAINE)) {
232
			if (!GTT_DEBOGAGE_PEAR && preg_match(GTT_DEBOGAGE_PEAR_REGEXP_CHAINE, $aso_erreur['fichier'])) {
233
				$erreur_pear_fichier_nbre++;
233
				$erreur_pear_fichier_nbre++;
234
			} else if (!GTT_DEBOGAGE_PEAR && preg_match(GTT_DEBOGAGE_PEAR_REGEXP_MESSAGE, $aso_erreur['message'])) {
234
			} else if (!GTT_DEBOGAGE_PEAR && preg_match(GTT_DEBOGAGE_PEAR_REGEXP_MESSAGE, $aso_erreur['message'])) {
235
				$erreur_pear_message_nbre++;
235
				$erreur_pear_message_nbre++;
236
			} else {
236
			} else {
237
				switch ($this->mode) {
237
				switch ($this->mode) {
Line 283... Line 283...
283
		}
283
		}
284
		$erreur_pear_nbre = $erreur_pear_fichier_nbre + $erreur_pear_message_nbre;
284
		$erreur_pear_nbre = $erreur_pear_fichier_nbre + $erreur_pear_message_nbre;
285
		if ($erreur_pear_nbre != 0) {
285
		if ($erreur_pear_nbre != 0) {
286
			$retour .= 	'<p class="attention">'.
286
			$retour .= 	'<p class="attention">'.
287
						'<strong>Nombre d\'erreurs PEAR totales : </strong>'.$erreur_pear_nbre.'<br />'."\n".
287
						'<strong>Nombre d\'erreurs PEAR totales : </strong>'.$erreur_pear_nbre.'<br />'."\n".
288
						'<strong> - éliminées car le "fichier" contené '.GTT_DEBOGAGE_PEAR_CHAINE.' : </strong>'.$erreur_pear_fichier_nbre.'<br />'."\n".
288
						'<strong> - éliminées car le "fichier" correspondé à '.GTT_DEBOGAGE_PEAR_REGEXP_CHAINE.' : </strong>'.$erreur_pear_fichier_nbre.'<br />'."\n".
289
						'<strong> - éliminées car le "message" correspondé à '.GTT_DEBOGAGE_PEAR_REGEXP_MESSAGE.' : </strong>'.$erreur_pear_message_nbre.'<br />'."\n".
289
						'<strong> - éliminées car le "message" correspondé à '.GTT_DEBOGAGE_PEAR_REGEXP_MESSAGE.' : </strong>'.$erreur_pear_message_nbre.'<br />'."\n".
290
						'</p>'."\n";
290
						'</p>'."\n";
291
		}
291
		}
292
		return $retour;
292
		return $retour;
293
	}
293
	}