Overview
Comment:Utilisation de tableau associatif pour le remplacement des tags
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: 5a21cf2cbc7d2c0f7c354f4869e16dbb4853e5af
User & Date: bohwaz on 2017-05-02 06:59:48
Other Links: branch diff | manifest | tags
Context
2017-05-03
06:28
Modernisation du code : partie configuration check-in: 5e80c3fb20 user: bohwaz tags: dev
2017-05-02
06:59
Utilisation de tableau associatif pour le remplacement des tags check-in: 5a21cf2cbc user: bohwaz tags: dev
2017-05-01
07:23
Modernisation : utilisation de DB->begin() à la place de exec('BEGIN') (etc.) check-in: 620a063aeb user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Rappels_Envoyes.php from [338080863d] to [4dd5416887].

136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
	/**
	 * Envoi de mail pour rappel automatisé
	 * @param  array $data Données du rappel automatisé
	 * @return boolean     TRUE
	 */
	public function sendAuto($data)
	{
		$replace = $data;
		$replace['date_rappel'] = Utils::sqliteDateToFrench($replace['date_rappel']);
		$replace['date_expiration'] = Utils::sqliteDateToFrench($replace['expiration']);
		$replace['nb_jours'] = abs($replace['nb_jours']);
		$replace['delai'] = abs($replace['delai']);

		$subject = $this->replaceTagsInContent($data['sujet'], $replace);
		$text = $this->replaceTagsInContent($data['texte'], $replace);







|







136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
	/**
	 * Envoi de mail pour rappel automatisé
	 * @param  array $data Données du rappel automatisé
	 * @return boolean     TRUE
	 */
	public function sendAuto($data)
	{
		$replace = (array) $data;
		$replace['date_rappel'] = Utils::sqliteDateToFrench($replace['date_rappel']);
		$replace['date_expiration'] = Utils::sqliteDateToFrench($replace['expiration']);
		$replace['nb_jours'] = abs($replace['nb_jours']);
		$replace['delai'] = abs($replace['delai']);

		$subject = $this->replaceTagsInContent($data['sujet'], $replace);
		$text = $this->replaceTagsInContent($data['texte'], $replace);