Completed
Push — master ( d593dc...91e0b1 )
by cam
01:24
created
ecrire/action/editer_objet.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -76,12 +76,12 @@  discard block
 block discarded – undo
76 76
  */
77 77
 function objet_modifier($objet, $id, $set = null) {
78 78
 	if (($t = objet_type($objet)) !== $objet) {
79
-		spip_log("objet_modifier: appel avec type $objet invalide au lieu de $t", 'editer' . _LOG_INFO_IMPORTANTE);
79
+		spip_log("objet_modifier: appel avec type $objet invalide au lieu de $t", 'editer'._LOG_INFO_IMPORTANTE);
80 80
 		$objet = $t;
81 81
 	}
82 82
 	if (
83
-		include_spip('action/editer_' . $objet)
84
-		and function_exists($modifier = $objet . '_modifier')
83
+		include_spip('action/editer_'.$objet)
84
+		and function_exists($modifier = $objet.'_modifier')
85 85
 	) {
86 86
 		return $modifier($id, $set);
87 87
 	}
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 	$trouver_table = charger_fonction('trouver_table', 'base');
91 91
 	$desc = $trouver_table($table_sql);
92 92
 	if (!$desc or !isset($desc['field'])) {
93
-		spip_log("Objet $objet inconnu dans objet_modifier", 'editer' . _LOG_ERREUR);
93
+		spip_log("Objet $objet inconnu dans objet_modifier", 'editer'._LOG_ERREUR);
94 94
 
95 95
 		return _L("Erreur objet $objet inconnu");
96 96
 	}
@@ -169,12 +169,12 @@  discard block
 block discarded – undo
169 169
  */
170 170
 function objet_inserer($objet, $id_parent = null, $set = null) {
171 171
 	if (($t = objet_type($objet)) !== $objet) {
172
-		spip_log("objet_inserer: appel avec type $objet invalide au lieu de $t", 'editer' . _LOG_INFO_IMPORTANTE);
172
+		spip_log("objet_inserer: appel avec type $objet invalide au lieu de $t", 'editer'._LOG_INFO_IMPORTANTE);
173 173
 		$objet = $t;
174 174
 	}
175 175
 	if (
176
-		include_spip('action/editer_' . $objet)
177
-		and function_exists($inserer = $objet . '_inserer')
176
+		include_spip('action/editer_'.$objet)
177
+		and function_exists($inserer = $objet.'_inserer')
178 178
 	) {
179 179
 		return $inserer($id_parent, $set);
180 180
 	}
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 			$row = sql_fetsel('id_rubrique, id_secteur, lang', 'spip_rubriques', 'id_parent=0', '', '0+titre,titre', '1');
196 196
 			$id_rubrique = $row['id_rubrique'];
197 197
 		} else {
198
-			$row = sql_fetsel('lang, id_secteur', 'spip_rubriques', 'id_rubrique=' . intval($id_rubrique));
198
+			$row = sql_fetsel('lang, id_secteur', 'spip_rubriques', 'id_rubrique='.intval($id_rubrique));
199 199
 		}
200 200
 
201 201
 		$champs['id_rubrique'] = $id_rubrique;
@@ -313,12 +313,12 @@  discard block
 block discarded – undo
313 313
  */
314 314
 function objet_instituer($objet, $id, $c, $calcul_rub = true) {
315 315
 	if (($t = objet_type($objet)) !== $objet) {
316
-		spip_log("objet_instituer: appel avec type $objet invalide au lieu de $t", 'editer' . _LOG_INFO_IMPORTANTE);
316
+		spip_log("objet_instituer: appel avec type $objet invalide au lieu de $t", 'editer'._LOG_INFO_IMPORTANTE);
317 317
 		$objet = $t;
318 318
 	}
319 319
 	if (
320
-		include_spip('action/editer_' . $objet)
321
-		and function_exists($instituer = $objet . '_instituer')
320
+		include_spip('action/editer_'.$objet)
321
+		and function_exists($instituer = $objet.'_instituer')
322 322
 	) {
323 323
 		return $instituer($id, $c, $calcul_rub);
324 324
 	}
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
 	$sel[] = ($champ_date ? "$champ_date as date" : "'' as date");
348 348
 	$sel[] = (isset($desc['field']['id_rubrique']) ? 'id_rubrique' : '0 as id_rubrique');
349 349
 
350
-	$row = sql_fetsel($sel, $table_sql, id_table_objet($objet) . '=' . intval($id));
350
+	$row = sql_fetsel($sel, $table_sql, id_table_objet($objet).'='.intval($id));
351 351
 
352 352
 	$id_rubrique = $row['id_rubrique'];
353 353
 	$statut_ancien = $statut = $row['statut'];
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
 			if ($s != 'publie' and autoriser('modifier', $objet, $id)) {
371 371
 				$statut = $champs['statut'] = $s;
372 372
 			} else {
373
-				spip_log("editer_objet $objet #$id refus " . json_encode($c), 'editer' . _LOG_INFO_IMPORTANTE);
373
+				spip_log("editer_objet $objet #$id refus ".json_encode($c), 'editer'._LOG_INFO_IMPORTANTE);
374 374
 			}
375 375
 		}
376 376
 
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
 		and isset($c['id_parent'])
401 401
 		and $id_parent = $c['id_parent']
402 402
 		and $id_parent != $id_rubrique
403
-		and (sql_fetsel('1', 'spip_rubriques', 'id_rubrique=' . intval($id_parent)))
403
+		and (sql_fetsel('1', 'spip_rubriques', 'id_rubrique='.intval($id_parent)))
404 404
 	) {
405 405
 		$champs['id_rubrique'] = $id_parent;
406 406
 
@@ -499,7 +499,7 @@  discard block
 block discarded – undo
499 499
 	// Si on deplace l'objet
500 500
 	// changer aussi son secteur et sa langue (si heritee)
501 501
 	if (isset($champs['id_rubrique'])) {
502
-		$row_rub = sql_fetsel('id_secteur, lang', 'spip_rubriques', 'id_rubrique=' . sql_quote($champs['id_rubrique']));
502
+		$row_rub = sql_fetsel('id_secteur, lang', 'spip_rubriques', 'id_rubrique='.sql_quote($champs['id_rubrique']));
503 503
 		$langue = $row_rub['lang'];
504 504
 
505 505
 		if (isset($desc['field']['id_secteur'])) {
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
 				sql_fetsel(
512 512
 					'1',
513 513
 					$table_sql,
514
-					id_table_objet($objet) . '=' . intval($id) . " AND langue_choisie<>'oui' AND lang<>" . sql_quote($langue)
514
+					id_table_objet($objet).'='.intval($id)." AND langue_choisie<>'oui' AND lang<>".sql_quote($langue)
515 515
 				)
516 516
 			) {
517 517
 				$champs['lang'] = $langue;
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
 	if (!$champs) {
523 523
 		return;
524 524
 	}
525
-	sql_updateq($table_sql, $champs, id_table_objet($objet) . '=' . intval($id));
525
+	sql_updateq($table_sql, $champs, id_table_objet($objet).'='.intval($id));
526 526
 
527 527
 	// Changer le statut des rubriques concernees
528 528
 	if ($cond) {
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
  */
567 567
 function objet_lire($objet, $valeur_id, $options = []) {
568 568
 	if (($t = objet_type($objet)) !== $objet) {
569
-		spip_log("objet_lire: appel avec type $objet invalide au lieu de $t", 'editer' . _LOG_INFO_IMPORTANTE);
569
+		spip_log("objet_lire: appel avec type $objet invalide au lieu de $t", 'editer'._LOG_INFO_IMPORTANTE);
570 570
 		$objet = $t;
571 571
 	}
572 572
 
@@ -588,7 +588,7 @@  discard block
 block discarded – undo
588 588
 	) {
589 589
 		// Il est possible pour un type d'objet de fournir une fonction de lecture de tous les champs d'un objet.
590 590
 		if (
591
-			include_spip('action/editer_' . $objet)
591
+			include_spip('action/editer_'.$objet)
592 592
 			and function_exists($lire = "${objet}_lire_champs")
593 593
 		) {
594 594
 			$valeurs = $lire($objet, $valeur_id, $champ_id);
@@ -598,7 +598,7 @@  discard block
 block discarded – undo
598 598
 
599 599
 			// La condition est appliquée sur le champ désigné par l'utilisateur.
600 600
 			$where = [
601
-				"${champ_id}=" . sql_quote($valeur_id)
601
+				"${champ_id}=".sql_quote($valeur_id)
602 602
 			];
603 603
 
604 604
 			// Acquisition de tous les champs de l'objet : si l'accès SQL retourne une erreur on renvoie un tableau vide.
Please login to merge, or discard this patch.
ecrire/action/editer_logo.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 		return $erreur;
90 90
 	}
91 91
 	// chercher dans la base
92
-	$mode_document = 'logo' . $mode;
92
+	$mode_document = 'logo'.$mode;
93 93
 
94 94
 	include_spip('inc/documents');
95 95
 	$erreur = '';
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 		$tmp_name = false;
107 107
 		if (file_exists($source)) {
108 108
 			$tmp_name = $source;
109
-		} elseif (file_exists($f = determine_upload() . $source)) {
109
+		} elseif (file_exists($f = determine_upload().$source)) {
110 110
 			$tmp_name = $f;
111 111
 		}
112 112
 		if (!$tmp_name) {
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 
141 141
 	if (!is_numeric($id_document)) {
142 142
 		$erreur = ($id_document ? $id_document : 'Erreur inconnue');
143
-		spip_log("Erreur ajout logo : $erreur pour source=" . json_encode($source), 'logo');
143
+		spip_log("Erreur ajout logo : $erreur pour source=".json_encode($source), 'logo');
144 144
 		return $erreur;
145 145
 	}
146 146
 
@@ -163,14 +163,14 @@  discard block
 block discarded – undo
163 163
 	$type = type_du_logo($_id_objet);
164 164
 
165 165
 	foreach (['on', 'off'] as $mode) {
166
-		$nom_base = $type . $mode;
166
+		$nom_base = $type.$mode;
167 167
 		$dir = (defined('_DIR_LOGOS') ? _DIR_LOGOS : _DIR_IMG);
168 168
 
169 169
 		$deja = [];
170
-		$files = glob($dir . $nom_base . '*');
170
+		$files = glob($dir.$nom_base.'*');
171 171
 
172 172
 		foreach ($files as $file) {
173
-			$logo = substr($file, strlen($dir . $nom_base));
173
+			$logo = substr($file, strlen($dir.$nom_base));
174 174
 			$logo = explode('.', $logo);
175 175
 			if (
176 176
 				is_numeric($logo[0])
@@ -181,11 +181,11 @@  discard block
 block discarded – undo
181 181
 					// if no logo in base
182 182
 					if (!$logo or count($logo) < 6) {
183 183
 						foreach ($formats_logos as $format) {
184
-							if (@file_exists($d = ($dir . ($nom = $nom_base . intval($id_objet) . '.' . $format)))) {
184
+							if (@file_exists($d = ($dir.($nom = $nom_base.intval($id_objet).'.'.$format)))) {
185 185
 								// logo_modifier commence par supprimer le logo existant, donc on le deplace pour pas le perdre
186
-								@rename($d, $dir_logos . $nom);
186
+								@rename($d, $dir_logos.$nom);
187 187
 								// et on le declare comme nouveau logo
188
-								logo_modifier($objet, $id_objet, $mode, $dir_logos . $nom);
188
+								logo_modifier($objet, $id_objet, $mode, $dir_logos.$nom);
189 189
 								break;
190 190
 							}
191 191
 						}
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 			}
196 196
 			// si le fichier est encore la on le move : rien a faire ici
197 197
 			if (file_exists($file)) {
198
-				@rename($file, $dir_logos_erreurs . basename($file));
198
+				@rename($file, $dir_logos_erreurs.basename($file));
199 199
 			}
200 200
 
201 201
 			if ($time_limit and time() > $time_limit) {
Please login to merge, or discard this patch.
ecrire/action/calculer_taille_cache.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,16 +43,16 @@
 block discarded – undo
43 43
 			'ecrire:taille_cache_image',
44 44
 			[
45 45
 				'dir' => joli_repertoire(_DIR_VAR),
46
-				'taille' => '<b>' . (taille_en_octets($taille) > 0 ? taille_en_octets($taille) : '0 octet') . '</b>'
46
+				'taille' => '<b>'.(taille_en_octets($taille) > 0 ? taille_en_octets($taille) : '0 octet').'</b>'
47 47
 			]
48 48
 		);
49 49
 	} else {
50 50
 		include_spip('inc/invalideur');
51 51
 		$taille =
52 52
 			calculer_taille_dossier(_DIR_CACHE_XML)
53
-			+ calculer_taille_dossier(_DIR_CACHE . 'skel/')
54
-			+ calculer_taille_dossier(_DIR_CACHE . 'wheels/')
55
-			+ calculer_taille_dossier(_DIR_CACHE . 'contextes/');
53
+			+ calculer_taille_dossier(_DIR_CACHE.'skel/')
54
+			+ calculer_taille_dossier(_DIR_CACHE.'wheels/')
55
+			+ calculer_taille_dossier(_DIR_CACHE.'contextes/');
56 56
 		$taille += intval(taille_du_cache());
57 57
 		if ($taille <= 150000) {
58 58
 			$res = _T('taille_cache_vide');
Please login to merge, or discard this patch.
ecrire/action/converser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 		action_converser_post($lang);
61 61
 	} elseif ($lang = _request('var_lang_ecrire')) {
62 62
 		if ($update_session) {
63
-			sql_updateq('spip_auteurs', ['lang' => $lang], 'id_auteur = ' . $GLOBALS['visiteur_session']['id_auteur']);
63
+			sql_updateq('spip_auteurs', ['lang' => $lang], 'id_auteur = '.$GLOBALS['visiteur_session']['id_auteur']);
64 64
 			$GLOBALS['visiteur_session']['lang'] = $lang;
65 65
 			$session = charger_fonction('session', 'inc');
66 66
 			if ($spip_session = $session($GLOBALS['visiteur_session'])) {
Please login to merge, or discard this patch.
ecrire/action/inscrire_auteur.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	}
57 57
 
58 58
 	include_spip('base/abstract_sql');
59
-	$res = sql_select('statut, id_auteur, login, email', 'spip_auteurs', 'email=' . sql_quote($desc['email']));
59
+	$res = sql_select('statut, id_auteur, login, email', 'spip_auteurs', 'email='.sql_quote($desc['email']));
60 60
 	// erreur ?
61 61
 	if (!$res) {
62 62
 		return _T('titre_probleme_technique');
@@ -207,11 +207,11 @@  discard block
 block discarded – undo
207 207
 
208 208
 	$login = $login_base;
209 209
 
210
-	for ($i = 1;; $i++) {
210
+	for ($i = 1; ; $i++) {
211 211
 		if (!sql_countsel('spip_auteurs', "login='$login'")) {
212 212
 			return $login;
213 213
 		}
214
-		$login = $login_base . $i;
214
+		$login = $login_base.$i;
215 215
 	}
216 216
 
217 217
 	return $login;
@@ -348,8 +348,8 @@  discard block
 block discarded – undo
348 348
 	// s'assurer de l'unicite du jeton pour le couple (email,cookie)
349 349
 	do {
350 350
 		$jeton = creer_uniqid();
351
-		sql_updateq('spip_auteurs', ['cookie_oubli' => $jeton], 'id_auteur=' . intval($id_auteur));
352
-	} while (sql_countsel('spip_auteurs', 'cookie_oubli=' . sql_quote($jeton)) > 1);
351
+		sql_updateq('spip_auteurs', ['cookie_oubli' => $jeton], 'id_auteur='.intval($id_auteur));
352
+	} while (sql_countsel('spip_auteurs', 'cookie_oubli='.sql_quote($jeton)) > 1);
353 353
 
354 354
 	return $jeton;
355 355
 }
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
 	}
368 368
 
369 369
 	// on peut tomber sur un jeton compose uniquement de chiffres, il faut forcer le $type pour sql_quote pour eviter de planter
370
-	$desc = sql_fetsel('*', 'spip_auteurs', 'cookie_oubli=' . sql_quote($jeton, '', 'string'));
370
+	$desc = sql_fetsel('*', 'spip_auteurs', 'cookie_oubli='.sql_quote($jeton, '', 'string'));
371 371
 
372 372
 	return $desc;
373 373
 }
@@ -379,5 +379,5 @@  discard block
 block discarded – undo
379 379
  * @return bool
380 380
  */
381 381
 function auteur_effacer_jeton($id_auteur) {
382
-	return sql_updateq('spip_auteurs', ['cookie_oubli' => ''], 'id_auteur=' . intval($id_auteur));
382
+	return sql_updateq('spip_auteurs', ['cookie_oubli' => ''], 'id_auteur='.intval($id_auteur));
383 383
 }
Please login to merge, or discard this patch.
ecrire/action/tester.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 			} else {
44 44
 				# Attention GD sait lire le gif mais pas forcement l'ecrire
45 45
 				if (function_exists('ImageCreateFromGIF')) {
46
-					$srcImage = @ImageCreateFromGIF(_ROOT_IMG_PACK . 'test.gif');
46
+					$srcImage = @ImageCreateFromGIF(_ROOT_IMG_PACK.'test.gif');
47 47
 					if ($srcImage) {
48 48
 						$gd_formats_read_gif = ',gif';
49 49
 						ImageDestroy($srcImage);
@@ -67,28 +67,28 @@  discard block
 block discarded – undo
67 67
 			# les formats disponibles en ecriture... (cf. inc_logos)
68 68
 
69 69
 			if (function_exists('ImageCreateFromJPEG')) {
70
-				$srcImage = @ImageCreateFromJPEG(_ROOT_IMG_PACK . 'test.jpg');
70
+				$srcImage = @ImageCreateFromJPEG(_ROOT_IMG_PACK.'test.jpg');
71 71
 				if ($srcImage) {
72 72
 					$gd_formats[] = 'jpg';
73 73
 					ImageDestroy($srcImage);
74 74
 				}
75 75
 			}
76 76
 			if (function_exists('ImageCreateFromGIF')) {
77
-				$srcImage = @ImageCreateFromGIF(_ROOT_IMG_PACK . 'test.gif');
77
+				$srcImage = @ImageCreateFromGIF(_ROOT_IMG_PACK.'test.gif');
78 78
 				if ($srcImage) {
79 79
 					$gd_formats[] = 'gif';
80 80
 					ImageDestroy($srcImage);
81 81
 				}
82 82
 			}
83 83
 			if (function_exists('ImageCreateFromPNG')) {
84
-				$srcImage = @ImageCreateFromPNG(_ROOT_IMG_PACK . 'test.png');
84
+				$srcImage = @ImageCreateFromPNG(_ROOT_IMG_PACK.'test.png');
85 85
 				if ($srcImage) {
86 86
 					$gd_formats[] = 'png';
87 87
 					ImageDestroy($srcImage);
88 88
 				}
89 89
 			}
90 90
 			if (function_exists('ImageCreateFromWEBP')) {
91
-				$srcImage = @ImageCreateFromWEBP(_ROOT_IMG_PACK . 'test.webp');
91
+				$srcImage = @ImageCreateFromWEBP(_ROOT_IMG_PACK.'test.webp');
92 92
 				if ($srcImage) {
93 93
 					$gd_formats[] = 'webp';
94 94
 					ImageDestroy($srcImage);
@@ -96,10 +96,10 @@  discard block
 block discarded – undo
96 96
 			}
97 97
 		}
98 98
 
99
-		if (! empty($gd_formats)) {
99
+		if (!empty($gd_formats)) {
100 100
 			$gd_formats = join(',', $gd_formats);
101 101
 		}
102
-		ecrire_meta('gd_formats_read', $gd_formats . $gd_formats_read_gif);
102
+		ecrire_meta('gd_formats_read', $gd_formats.$gd_formats_read_gif);
103 103
 		ecrire_meta('gd_formats', $gd_formats);
104 104
 	} // verifier les formats netpbm
105 105
 	else {
@@ -123,9 +123,9 @@  discard block
 block discarded – undo
123 123
 				_PNMSCALE_COMMAND
124 124
 			);
125 125
 
126
-			$vignette = _ROOT_IMG_PACK . 'test.jpg';
127
-			$dest = _DIR_VAR . 'test-jpg.jpg';
128
-			$commande = "$jpegtopnm_command $vignette | " . _PNMSCALE_COMMAND . " -width 10 | $pnmtojpeg_command > $dest";
126
+			$vignette = _ROOT_IMG_PACK.'test.jpg';
127
+			$dest = _DIR_VAR.'test-jpg.jpg';
128
+			$commande = "$jpegtopnm_command $vignette | "._PNMSCALE_COMMAND." -width 10 | $pnmtojpeg_command > $dest";
129 129
 			spip_log($commande);
130 130
 			exec($commande);
131 131
 			if ($taille = @getimagesize($dest)) {
@@ -135,9 +135,9 @@  discard block
 block discarded – undo
135 135
 			}
136 136
 			$giftopnm_command = str_replace('pnmscale', 'giftopnm', _PNMSCALE_COMMAND);
137 137
 			$pnmtojpeg_command = str_replace('pnmscale', 'pnmtojpeg', _PNMSCALE_COMMAND);
138
-			$vignette = _ROOT_IMG_PACK . 'test.gif';
139
-			$dest = _DIR_VAR . 'test-gif.jpg';
140
-			$commande = "$giftopnm_command $vignette | " . _PNMSCALE_COMMAND . " -width 10 | $pnmtojpeg_command > $dest";
138
+			$vignette = _ROOT_IMG_PACK.'test.gif';
139
+			$dest = _DIR_VAR.'test-gif.jpg';
140
+			$commande = "$giftopnm_command $vignette | "._PNMSCALE_COMMAND." -width 10 | $pnmtojpeg_command > $dest";
141 141
 			spip_log($commande);
142 142
 			exec($commande);
143 143
 			if ($taille = @getimagesize($dest)) {
@@ -147,9 +147,9 @@  discard block
 block discarded – undo
147 147
 			}
148 148
 
149 149
 			$pngtopnm_command = str_replace('pnmscale', 'pngtopnm', _PNMSCALE_COMMAND);
150
-			$vignette = _ROOT_IMG_PACK . 'test.png';
151
-			$dest = _DIR_VAR . 'test-gif.jpg';
152
-			$commande = "$pngtopnm_command $vignette | " . _PNMSCALE_COMMAND . " -width 10 | $pnmtojpeg_command > $dest";
150
+			$vignette = _ROOT_IMG_PACK.'test.png';
151
+			$dest = _DIR_VAR.'test-gif.jpg';
152
+			$commande = "$pngtopnm_command $vignette | "._PNMSCALE_COMMAND." -width 10 | $pnmtojpeg_command > $dest";
153 153
 			spip_log($commande);
154 154
 			exec($commande);
155 155
 			if ($taille = @getimagesize($dest)) {
@@ -173,9 +173,9 @@  discard block
 block discarded – undo
173 173
 		include_spip('inc/filtres');
174 174
 		include_spip('inc/filtres_images_mini');
175 175
 		$taille_preview = 150;
176
-		$image = _image_valeurs_trans(_DIR_IMG_PACK . 'test_image.jpg', "reduire-$taille_preview-$taille_preview", 'jpg');
176
+		$image = _image_valeurs_trans(_DIR_IMG_PACK.'test_image.jpg', "reduire-$taille_preview-$taille_preview", 'jpg');
177 177
 
178
-		$image['fichier_dest'] = _DIR_VAR . "test_$arg";
178
+		$image['fichier_dest'] = _DIR_VAR."test_$arg";
179 179
 
180 180
 		if (
181 181
 			$preview = _image_creer_vignette($image, $taille_preview, $taille_preview, $arg, true)
Please login to merge, or discard this patch.
ecrire/action/logout.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
 				_T('login_deconnexion_ok'),
90 90
 				_T('login_verifiez_navigateur'),
91 91
 				_T('login_retour_public'),
92
-				'redirect=' . _DIR_RESTREINT_ABS,
92
+				'redirect='._DIR_RESTREINT_ABS,
93 93
 				_T('login_test_navigateur'),
94 94
 				true
95 95
 			);
Please login to merge, or discard this patch.
ecrire/action/purger.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 			supprime_invalideurs();
62 62
 			@spip_unlink(_CACHE_RUBRIQUES);
63 63
 			@spip_unlink(_CACHE_CHEMIN);
64
-			@spip_unlink(_DIR_TMP . 'plugin_xml_cache.gz');
64
+			@spip_unlink(_DIR_TMP.'plugin_xml_cache.gz');
65 65
 			// on ne supprime que _CACHE_PLUGINS_OPT qui declenche la reconstruction des 3
66 66
 			// _CACHE_PIPELINES _CACHE_PLUGINS_PATH et _CACHE_PLUGINS_FCT
67 67
 			// pour eviter des problemes de concurence
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
 			@spip_unlink(_CACHE_PLUGINS_OPT);
73 73
 			purger_repertoire(_DIR_CACHE, ['subdir' => true]);
74 74
 			purger_repertoire(_DIR_AIDE);
75
-			purger_repertoire(_DIR_VAR . 'cache-css');
76
-			purger_repertoire(_DIR_VAR . 'cache-js');
75
+			purger_repertoire(_DIR_VAR.'cache-css');
76
+			purger_repertoire(_DIR_VAR.'cache-js');
77 77
 			break;
78 78
 
79 79
 		case 'squelettes':
@@ -81,10 +81,10 @@  discard block
 block discarded – undo
81 81
 			break;
82 82
 
83 83
 		case 'vignettes':
84
-			purger_repertoire(_DIR_VAR . 'cache-gd2', ['subdir' => true]);
85
-			purger_repertoire(_DIR_VAR . 'cache-texte', ['subdir' => true]);
86
-			purger_repertoire(_DIR_VAR . 'cache-vignettes', ['subdir' => true]);
87
-			purger_repertoire(_DIR_VAR . 'cache-TeX', ['subdir' => true]);
84
+			purger_repertoire(_DIR_VAR.'cache-gd2', ['subdir' => true]);
85
+			purger_repertoire(_DIR_VAR.'cache-texte', ['subdir' => true]);
86
+			purger_repertoire(_DIR_VAR.'cache-vignettes', ['subdir' => true]);
87
+			purger_repertoire(_DIR_VAR.'cache-TeX', ['subdir' => true]);
88 88
 			supprime_invalideurs();
89 89
 			purger_repertoire(_DIR_CACHE, ['subdir' => true]);
90 90
 			break;
Please login to merge, or discard this patch.
ecrire/action/editer_rubrique.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 			$id_rubrique,
151 151
 			[
152 152
 			'data' => $set,
153
-			'nonvide' => ['titre' => _T('titre_nouvelle_rubrique') . ' ' . _T('info_numero_abbreviation') . $id_rubrique]
153
+			'nonvide' => ['titre' => _T('titre_nouvelle_rubrique').' '._T('info_numero_abbreviation').$id_rubrique]
154 154
 			],
155 155
 			$c
156 156
 		)
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 				)
255 255
 			) {
256 256
 				if ($s['statut'] != 'new') {
257
-					spip_log("deplacement de $id_rubrique vers $id_parent refuse a " . $GLOBALS['visiteur_session']['id_auteur'] . ' ' . $GLOBALS['visiteur_session']['statut']);
257
+					spip_log("deplacement de $id_rubrique vers $id_parent refuse a ".$GLOBALS['visiteur_session']['id_auteur'].' '.$GLOBALS['visiteur_session']['statut']);
258 258
 				}
259 259
 			} elseif (editer_rubrique_breves($id_rubrique, $id_parent, $c)) {
260 260
 				$statut_ancien = $s['statut'];
Please login to merge, or discard this patch.