Completed
Push — master ( 1c0099...508762 )
by cam
05:21
created
ecrire/public/composer.php 1 patch
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 		$GLOBALS['debug_objets']['courant'] = $nom;
55 55
 	}
56 56
 
57
-	$phpfile = sous_repertoire(_DIR_SKELS, '', false, true) . $nom . '.php';
57
+	$phpfile = sous_repertoire(_DIR_SKELS, '', false, true).$nom.'.php';
58 58
 
59 59
 	// si squelette est deja compile et perenne, le charger
60 60
 	if (!squelette_obsolete($phpfile, $source)) {
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 		#}
68 68
 	}
69 69
 
70
-	if (file_exists($lib = $squelette . '_fonctions' . '.php')) {
70
+	if (file_exists($lib = $squelette.'_fonctions'.'.php')) {
71 71
 		include_once $lib;
72 72
 	}
73 73
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 			}
106 106
 		} catch (\ParseError $e) {
107 107
 			// Code syntaxiquement faux (critere etc mal programme')
108
-			$msg = _T('zbug_erreur_compilation') . ' | Line ' . $e->getLine() . ' : ' . $e->getMessage();
108
+			$msg = _T('zbug_erreur_compilation').' | Line '.$e->getLine().' : '.$e->getMessage();
109 109
 			erreur_squelette($msg, $boucle);
110 110
 			// continuer pour trouver d'autres fautes eventuelles
111 111
 			// mais prevenir que c'est mort
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 	if (defined('_VAR_MODE') and _VAR_MODE == 'debug') {
135 135
 
136 136
 		// Tracer ce qui vient d'etre compile
137
-		$GLOBALS['debug_objets']['code'][$nom . 'tout'] = $code;
137
+		$GLOBALS['debug_objets']['code'][$nom.'tout'] = $code;
138 138
 
139 139
 		// si c'est ce que demande le debusqueur, lui passer la main
140 140
 		if ($GLOBALS['debug_objets']['sourcefile']
@@ -156,13 +156,13 @@  discard block
 block discarded – undo
156 156
 		$code = "
157 157
 /*
158 158
  * Squelette : $sourcefile
159
- * Date :      " . gmdate("D, d M Y H:i:s", @filemtime($sourcefile)) . " GMT
160
- * Compile :   " . gmdate("D, d M Y H:i:s", time()) . " GMT
161
- * " . (!$boucles ? "Pas de boucle" : ("Boucles :   " . $noms)) . "
159
+ * Date :      ".gmdate("D, d M Y H:i:s", @filemtime($sourcefile))." GMT
160
+ * Compile :   " . gmdate("D, d M Y H:i:s", time())." GMT
161
+ * " . (!$boucles ? "Pas de boucle" : ("Boucles :   ".$noms))."
162 162
  */ ";
163 163
 	}
164 164
 
165
-	$code = '<' . "?php\n" . $code . join('', $boucles) . "\n?" . '>';
165
+	$code = '<'."?php\n".$code.join('', $boucles)."\n?".'>';
166 166
 	if (!defined('_VAR_NOCACHE') or !_VAR_NOCACHE) {
167 167
 		ecrire_fichier($phpfile, $code);
168 168
 	}
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 			$j = join('-', array_map('ucwords', explode('-', strtolower($r[2]))));
223 223
 
224 224
 			if ($j == 'X-Spip-Filtre' and isset($headers[$j])) {
225
-				$headers[$j] .= "|" . $r[3];
225
+				$headers[$j] .= "|".$r[3];
226 226
 			} else {
227 227
 				$headers[$j] = $r[3];
228 228
 			}
@@ -230,10 +230,10 @@  discard block
 block discarded – undo
230 230
 	}
231 231
 	// S'agit-il d'un resultat constant ou contenant du code php
232 232
 	$process_ins = (
233
-		strpos($corps, '<' . '?') === false
233
+		strpos($corps, '<'.'?') === false
234 234
 		or
235
-		(strpos($corps, '<' . '?xml') !== false and
236
-			strpos(str_replace('<' . '?xml', '', $corps), '<' . '?') === false)
235
+		(strpos($corps, '<'.'?xml') !== false and
236
+			strpos(str_replace('<'.'?xml', '', $corps), '<'.'?') === false)
237 237
 	)
238 238
 		? 'html'
239 239
 		: 'php';
@@ -262,10 +262,10 @@  discard block
 block discarded – undo
262 262
 
263 263
 		if ($process_ins == 'html') {
264 264
 			$skel['process_ins'] = (
265
-				strpos($corps, '<' . '?') === false
265
+				strpos($corps, '<'.'?') === false
266 266
 				or
267
-				(strpos($corps, '<' . '?xml') !== false and
268
-					strpos(str_replace('<' . '?xml', '', $corps), '<' . '?') === false)
267
+				(strpos($corps, '<'.'?xml') !== false and
268
+					strpos(str_replace('<'.'?xml', '', $corps), '<'.'?') === false)
269 269
 			)
270 270
 				? 'html'
271 271
 				: 'php';
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 //
284 284
 
285 285
 /** Code PHP pour inclure une balise dynamique à l'exécution d'une page */
286
-define('CODE_INCLURE_BALISE', '<' . '?php 
286
+define('CODE_INCLURE_BALISE', '<'.'?php 
287 287
 include_once("%s");
288 288
 if ($lang_select = "%s") $lang_select = lang_select($lang_select);
289 289
 inserer_balise_dynamique(balise_%s_dyn(%s), array(%s));
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
  **/
311 311
 function synthetiser_balise_dynamique($nom, $args, $file, $context_compil) {
312 312
 	if (strncmp($file, "/", 1) !== 0) {
313
-		$file = './" . _DIR_RACINE . "' . $file;
313
+		$file = './" . _DIR_RACINE . "'.$file;
314 314
 	}
315 315
 
316 316
 	$lang = $context_compil[4];
@@ -351,18 +351,18 @@  discard block
 block discarded – undo
351 351
 
352 352
 	if (is_object($v)) {
353 353
 		if (PHP_VERSION_ID < 73000 and $v instanceof \stdClass) {
354
-			return "(object) " . var_export((array) $v, true);
354
+			return "(object) ".var_export((array) $v, true);
355 355
 		}
356 356
 		return var_export($v, true);
357 357
 	} elseif (!is_array($v)) {
358
-		return "'" . texte_script($v) . "'";
358
+		return "'".texte_script($v)."'";
359 359
 	} else {
360 360
 		$out = array();
361 361
 		foreach ($v as $k => $val) {
362
-			$out [] = argumenter_squelette($k) . '=>' . argumenter_squelette($val);
362
+			$out [] = argumenter_squelette($k).'=>'.argumenter_squelette($val);
363 363
 		}
364 364
 
365
-		return 'array(' . join(", ", $out) . ')';
365
+		return 'array('.join(", ", $out).')';
366 366
 	}
367 367
 }
368 368
 
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
 	}
438 438
 
439 439
 	// Y a-t-il une fonction de traitement des arguments ?
440
-	$f = 'balise_' . $nomfonction . '_stat';
440
+	$f = 'balise_'.$nomfonction.'_stat';
441 441
 
442 442
 	$r = !function_exists($f) ? $args : $f($args, $context_compil);
443 443
 
@@ -447,16 +447,16 @@  discard block
 block discarded – undo
447 447
 
448 448
 	// verifier que la fonction dyn est la, 
449 449
 	// sinon se replier sur la generique si elle existe
450
-	if (!function_exists('balise_' . $nomfonction . '_dyn')) {
450
+	if (!function_exists('balise_'.$nomfonction.'_dyn')) {
451 451
 		if ($nomfonction_generique
452
-			and $file = include_spip("balise/" . strtolower($nomfonction_generique))
453
-			and function_exists('balise_' . $nomfonction_generique . '_dyn')
452
+			and $file = include_spip("balise/".strtolower($nomfonction_generique))
453
+			and function_exists('balise_'.$nomfonction_generique.'_dyn')
454 454
 		) {
455 455
 			// et lui injecter en premier arg le nom de la balise 
456 456
 			array_unshift($r, $nom);
457 457
 			$nomfonction = $nomfonction_generique;
458 458
 			if (!_DIR_RESTREINT) {
459
-				$file = _DIR_RESTREINT_ABS . $file;
459
+				$file = _DIR_RESTREINT_ABS.$file;
460 460
 			}
461 461
 		} else {
462 462
 			$msg = array('zbug_balise_inexistante', array('from' => 'CVT', 'balise' => $nom));
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
 		$n = '';
527 527
 		foreach (explode(',', $liste) as $val) {
528 528
 			if ($a = intval($val) and $val === strval($a)) {
529
-				$n .= ',' . $val;
529
+				$n .= ','.$val;
530 530
 			}
531 531
 		}
532 532
 		if (strlen($n)) {
@@ -705,14 +705,14 @@  discard block
 block discarded – undo
705 705
 			// on construit le where une fois, puis on ajoute les where complentaires si besoin, et on reconstruit le where en fonction
706 706
 			$i = 0;
707 707
 			do {
708
-				$where[$k] = remplace_sous_requete($w, "(" . calculer_select(
709
-						array($sous[1] . " AS id"),
708
+				$where[$k] = remplace_sous_requete($w, "(".calculer_select(
709
+						array($sous[1]." AS id"),
710 710
 						$from,
711 711
 						$from_type,
712 712
 						$wheresub,
713 713
 						$jsub,
714 714
 						array(), array(), '',
715
-						$having, $table, $id, $serveur, false) . ")");
715
+						$having, $table, $id, $serveur, false).")");
716 716
 				if (!$i) {
717 717
 					$i = 1;
718 718
 					$wherestring = calculer_where_to_string($where[$k]);
@@ -731,7 +731,7 @@  discard block
 block discarded – undo
731 731
 		if ($sous[0] == 'SUBSELECT') {
732 732
 			// c'est une sous requete explicite sous la forme identique a sql_select : (SUBSELECT,$select,$from,$where,$groupby,$orderby,$limit,$having)
733 733
 			array_push($where_simples, $sous[3]); // est-ce utile dans ce cas ?
734
-			$where[$k] = remplace_sous_requete($w, "(" . calculer_select(
734
+			$where[$k] = remplace_sous_requete($w, "(".calculer_select(
735 735
 					$sous[1], # select
736 736
 					$sous[2], #from
737 737
 					array(), #from_type
@@ -743,7 +743,7 @@  discard block
 block discarded – undo
743 743
 					$sous[6], #limit
744 744
 					$sous[7] ? $sous[7] : array(), #having
745 745
 					$table, $id, $serveur, false
746
-				) . ")");
746
+				).")");
747 747
 		}
748 748
 		array_pop($where_simples);
749 749
 	}
@@ -804,15 +804,15 @@  discard block
 block discarded – undo
804 804
 			// sans recours a preg_match
805 805
 			// un implode(' ',..) est fait dans reinjecte_joint un peu plus bas
806 806
 			$afrom[$t][$cle] = array(
807
-				"\n" .
808
-				(isset($from_type[$cle]) ? $from_type[$cle] : "INNER") . " JOIN",
807
+				"\n".
808
+				(isset($from_type[$cle]) ? $from_type[$cle] : "INNER")." JOIN",
809 809
 				$from[$cle],
810 810
 				"AS $cle",
811 811
 				"ON (",
812 812
 				"$cle.$c",
813 813
 				"=",
814 814
 				"$t.$carr",
815
-				($and ? "AND " . $and : "") .
815
+				($and ? "AND ".$and : "").
816 816
 				")"
817 817
 			);
818 818
 			if (isset($afrom[$cle])) {
@@ -846,7 +846,7 @@  discard block
 block discarded – undo
846 846
 		$t = key($from);
847 847
 		$c = current($from);
848 848
 		reset($from);
849
-		$e = '/\b(' . "$t\\." . join("|" . $t . '\.', $equiv) . ')\b/';
849
+		$e = '/\b('."$t\\.".join("|".$t.'\.', $equiv).')\b/';
850 850
 		if (!(strpos($t, ' ') or // jointure des le depart cf boucle_doc
851 851
 				calculer_jointnul($t, $select, $e) or
852 852
 				calculer_jointnul($t, $join, $e) or
@@ -863,7 +863,7 @@  discard block
 block discarded – undo
863 863
 			unset($afrom[$t][$nt]);
864 864
 			$afrom[$nt] = $afrom[$t];
865 865
 			unset($afrom[$t]);
866
-			$e = '/\b' . preg_quote($nfrom[6]) . '\b/';
866
+			$e = '/\b'.preg_quote($nfrom[6]).'\b/';
867 867
 			$t = $nfrom[4];
868 868
 			$alias = "";
869 869
 			// verifier que les deux cles sont homonymes, sinon installer un alias dans le select
@@ -874,14 +874,14 @@  discard block
 block discarded – undo
874 874
 			if ($newcle != $oldcle) {
875 875
 				// si l'ancienne cle etait deja dans le select avec un AS
876 876
 				// reprendre simplement ce AS
877
-				$as = '/\b' . preg_quote($nfrom[6]) . '\s+(AS\s+\w+)\b/';
877
+				$as = '/\b'.preg_quote($nfrom[6]).'\s+(AS\s+\w+)\b/';
878 878
 				if (preg_match($as, implode(',', $select), $m)) {
879 879
 					$alias = "";
880 880
 				} else {
881
-					$alias = ", " . $nfrom[4] . " AS $oldcle";
881
+					$alias = ", ".$nfrom[4]." AS $oldcle";
882 882
 				}
883 883
 			}
884
-			$select = remplacer_jointnul($t . $alias, $select, $e);
884
+			$select = remplacer_jointnul($t.$alias, $select, $e);
885 885
 			$join = remplacer_jointnul($t, $join, $e);
886 886
 			$where = remplacer_jointnul($t, $where, $e);
887 887
 			$having = remplacer_jointnul($t, $having, $e);
@@ -915,9 +915,9 @@  discard block
 block discarded – undo
915 915
 	} else {
916 916
 		$exp = "";
917 917
 		if (strtoupper($join) === 'AND') {
918
-			return $exp . join(" $join ", array_map('calculer_where_to_string', $v));
918
+			return $exp.join(" $join ", array_map('calculer_where_to_string', $v));
919 919
 		} else {
920
-			return $exp . join($join, $v);
920
+			return $exp.join($join, $v);
921 921
 		}
922 922
 	}
923 923
 }
@@ -983,6 +983,6 @@  discard block
 block discarded – undo
983 983
 	}
984 984
 
985 985
 	return $mime_type
986
-	. (!$connect ? '' : preg_replace('/\W/', "_", $connect)) . '_'
987
-	. md5($GLOBALS['spip_version_code'] . ' * ' . $skel . (isset($GLOBALS['marqueur_skel']) ? '*' . $GLOBALS['marqueur_skel'] : ''));
986
+	. (!$connect ? '' : preg_replace('/\W/', "_", $connect)).'_'
987
+	. md5($GLOBALS['spip_version_code'].' * '.$skel.(isset($GLOBALS['marqueur_skel']) ? '*'.$GLOBALS['marqueur_skel'] : ''));
988 988
 }
Please login to merge, or discard this patch.
ecrire/inc/editer.php 1 patch
Spacing   +34 added lines, -35 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 		$res['message_ok'] = _T('info_modification_enregistree');
101 101
 		if ($retour) {
102 102
 			if (strncmp($retour, 'javascript:', 11) == 0) {
103
-				$res['message_ok'] .= '<script type="text/javascript">/*<![CDATA[*/' . substr($retour, 11) . '/*]]>*/</script>';
103
+				$res['message_ok'] .= '<script type="text/javascript">/*<![CDATA[*/'.substr($retour, 11).'/*]]>*/</script>';
104 104
 				$res['editable'] = true;
105 105
 			} else {
106 106
 				$res['redirect'] = parametre_url($retour, $id_table_objet, $id);
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 				if (!isset($erreurs[$champ])) {
141 141
 					$erreurs[$champ] = '';
142 142
 				}
143
-				$erreurs[$champ] .= _T('alerte_modif_info_concourante') . "<br /><textarea readonly='readonly' class='forml'>" . entites_html($conflit['base']) . '</textarea>';
143
+				$erreurs[$champ] .= _T('alerte_modif_info_concourante')."<br /><textarea readonly='readonly' class='forml'>".entites_html($conflit['base']).'</textarea>';
144 144
 			}
145 145
 		}
146 146
 	}
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 	// on accepte pas une fonction de config inconnue si elle vient d'un modele
216 216
 	if ($config_fonc
217 217
 	  and !in_array($config_fonc, ['articles_edit_config', 'rubriques_edit_config', 'auteurs_edit_config'])
218
-	  and $config_fonc !== $table_objet . '_edit_config') {
218
+	  and $config_fonc !== $table_objet.'_edit_config') {
219 219
 		if ($args = test_formulaire_inclus_par_modele()
220 220
 		  and in_array($config_fonc, $args)) {
221 221
 			$config_fonc = '';
@@ -226,10 +226,10 @@  discard block
 block discarded – undo
226 226
 	// Appel direct dans un squelette
227 227
 	if (!$row) {
228 228
 		if (!$new or $lier_trad) {
229
-			if ($select = charger_fonction('precharger_' . $type, 'inc', true)) {
229
+			if ($select = charger_fonction('precharger_'.$type, 'inc', true)) {
230 230
 				$row = $select($id, $id_parent, $lier_trad);
231 231
 			} else {
232
-				$row = sql_fetsel('*', $table_objet_sql, $id_table_objet . '=' . intval($id));
232
+				$row = sql_fetsel('*', $table_objet_sql, $id_table_objet.'='.intval($id));
233 233
 			}
234 234
 			if (!$new) {
235 235
 				$md5 = controles_md5($row);
@@ -299,13 +299,12 @@  discard block
 block discarded – undo
299 299
 		unset($contexte['lang']);
300 300
 	}
301 301
 
302
-	$contexte['_hidden'] = "<input type='hidden' name='editer_$type' value='oui' />\n" .
303
-		(!$lier_trad ? '' :
304
-			("\n<input type='hidden' name='lier_trad' value='" .
305
-				$lier_trad .
306
-				"' />" .
307
-				"\n<input type='hidden' name='changer_lang' value='" .
308
-				$config['langue'] .
302
+	$contexte['_hidden'] = "<input type='hidden' name='editer_$type' value='oui' />\n".
303
+		(!$lier_trad ? '' : ("\n<input type='hidden' name='lier_trad' value='".
304
+				$lier_trad.
305
+				"' />".
306
+				"\n<input type='hidden' name='changer_lang' value='".
307
+				$config['langue'].
309 308
 				"' />"))
310 309
 		. $hidden
311 310
 		. (isset($md5) ? $md5 : '');
@@ -332,14 +331,14 @@  discard block
 block discarded – undo
332 331
 	$aider = charger_fonction('aider', 'inc');
333 332
 	if (strlen($texte) > 28 * 1024) {
334 333
 		$texte = str_replace("\r\n", "\n", $texte);
335
-		$pos = strpos($texte, "\n\n", 28 * 1024);  // coupe para > 28 ko
334
+		$pos = strpos($texte, "\n\n", 28 * 1024); // coupe para > 28 ko
336 335
 		if ($pos > 0 and $pos < 32 * 1024) {
337
-			$debut = substr($texte, 0, $pos) . "\n\n<!--SPIP-->\n";
336
+			$debut = substr($texte, 0, $pos)."\n\n<!--SPIP-->\n";
338 337
 			$suite = substr($texte, $pos + 2);
339 338
 		} else {
340
-			$pos = strpos($texte, ' ', 28 * 1024);  // sinon coupe espace
339
+			$pos = strpos($texte, ' ', 28 * 1024); // sinon coupe espace
341 340
 			if (!($pos > 0 and $pos < 32 * 1024)) {
342
-				$pos = 28 * 1024;  // au pire (pas d'espace trouv'e)
341
+				$pos = 28 * 1024; // au pire (pas d'espace trouv'e)
343 342
 				$decalage = 0; // si y'a pas d'espace, il ne faut pas perdre le caract`ere
344 343
 			} else {
345 344
 				$decalage = 1;
@@ -369,13 +368,13 @@  discard block
 block discarded – undo
369 368
 	}
370 369
 
371 370
 	include_spip('inc/barre');
372
-	$textes_supplement = "<br /><span style='color: red'>" . _T('info_texte_long') . "</span>\n";
371
+	$textes_supplement = "<br /><span style='color: red'>"._T('info_texte_long')."</span>\n";
373 372
 	$nombre = 0;
374 373
 
375 374
 	while (strlen($texte) > 29 * 1024) {
376 375
 		$nombre++;
377 376
 		list($texte1, $texte) = coupe_trop_long($texte);
378
-		$textes_supplement .= '<br />' .
377
+		$textes_supplement .= '<br />'.
379 378
 			"<textarea id='texte$nombre' name='texte_plus[$nombre]'$att_text>$texte1</textarea>\n";
380 379
 	}
381 380
 
@@ -463,7 +462,7 @@  discard block
 block discarded – undo
463 462
 	$ctr = array();
464 463
 	foreach ($data as $key => $val) {
465 464
 		$m = md5($val);
466
-		$k = $prefixe . $key;
465
+		$k = $prefixe.$key;
467 466
 
468 467
 		switch ($format) {
469 468
 			case 'html':
@@ -476,7 +475,7 @@  discard block
 block discarded – undo
476 475
 	}
477 476
 
478 477
 	if ($format == 'html') {
479
-		return "\n\n<!-- controles md5 -->\n" . join("\n", $ctr) . "\n\n";
478
+		return "\n\n<!-- controles md5 -->\n".join("\n", $ctr)."\n\n";
480 479
 	} else {
481 480
 		return $ctr;
482 481
 	}
@@ -627,7 +626,7 @@  discard block
 block discarded – undo
627 626
 	// On elimine les donnees non modifiees par le formulaire (mais
628 627
 	// potentiellement modifiees entre temps par un autre utilisateur)
629 628
 	foreach ($champs as $key => $val) {
630
-		if (isset($ctr[$prefix . $key]) and $m = $ctr[$prefix . $key]) {
629
+		if (isset($ctr[$prefix.$key]) and $m = $ctr[$prefix.$key]) {
631 630
 			if (is_scalar($val) and $m == md5($val)) {
632 631
 				unset($champs[$key]);
633 632
 			}
@@ -656,7 +655,7 @@  discard block
 block discarded – undo
656 655
 	// de conflit.
657 656
 	$ctrh = $ctrq = $conflits = array();
658 657
 	foreach (array_keys($champs) as $key) {
659
-		if (isset($ctr[$prefix . $key]) and $m = $ctr[$prefix . $key]) {
658
+		if (isset($ctr[$prefix.$key]) and $m = $ctr[$prefix.$key]) {
660 659
 			$ctrh[$key] = $m;
661 660
 			$ctrq[] = $key;
662 661
 		}
@@ -689,9 +688,9 @@  discard block
 block discarded – undo
689 688
  */
690 689
 function display_conflit_champ($x) {
691 690
 	if (strstr($x, "\n") or strlen($x) > 80) {
692
-		return "<textarea style='width:99%; height:10em;'>" . entites_html($x) . "</textarea>\n";
691
+		return "<textarea style='width:99%; height:10em;'>".entites_html($x)."</textarea>\n";
693 692
 	} else {
694
-		return "<input type='text' size='40' style='width:99%' value=\"" . entites_html($x) . "\" />\n";
693
+		return "<input type='text' size='40' style='width:99%' value=\"".entites_html($x)."\" />\n";
695 694
 	}
696 695
 }
697 696
 
@@ -731,11 +730,11 @@  discard block
 block discarded – undo
731 730
 		) : $champ;
732 731
 
733 732
 		$diffs[] = "<h2>$titre</h2>\n"
734
-			. '<h3>' . _T('info_conflit_edition_differences') . "</h3>\n"
735
-			. "<div style='max-height:8em; overflow: auto; width:99%;'>" . $d . "</div>\n"
736
-			. '<h4>' . _T('info_conflit_edition_votre_version') . '</h4>'
733
+			. '<h3>'._T('info_conflit_edition_differences')."</h3>\n"
734
+			. "<div style='max-height:8em; overflow: auto; width:99%;'>".$d."</div>\n"
735
+			. '<h4>'._T('info_conflit_edition_votre_version').'</h4>'
737 736
 			. display_conflit_champ($a['post'])
738
-			. '<h4>' . _T('info_conflit_edition_version_enregistree') . '</h4>'
737
+			. '<h4>'._T('info_conflit_edition_version_enregistree').'</h4>'
739 738
 			. display_conflit_champ($base);
740 739
 	}
741 740
 
@@ -743,16 +742,16 @@  discard block
 block discarded – undo
743 742
 		$id = uniqid(rand());
744 743
 		$redirect = "<form action='$redirect' method='get'
745 744
 			id='$id'
746
-			style='float:" . $GLOBALS['spip_lang_right'] . "; margin-top:2em;'>\n"
745
+			style='float:".$GLOBALS['spip_lang_right']."; margin-top:2em;'>\n"
747 746
 			. form_hidden($redirect)
748
-			. "<input type='submit' value='" . _T('icone_retour') . "' />
747
+			. "<input type='submit' value='"._T('icone_retour')."' />
749 748
 		</form>\n";
750 749
 
751 750
 		// pour les documents, on est probablement en ajax : il faut ajaxer
752 751
 		if (_AJAX) {
753 752
 			$redirect .= '<script type="text/javascript">'
754
-				. 'setTimeout(function(){$("#' . $id . '")
755
-			.ajaxForm({target:$("#' . $id . '").parent()});
753
+				. 'setTimeout(function(){$("#'.$id.'")
754
+			.ajaxForm({target:$("#' . $id.'").parent()});
756 755
 			}, 200);'
757 756
 				. "</script>\n";
758 757
 		}
@@ -771,9 +770,9 @@  discard block
 block discarded – undo
771 770
 .diff-para-deplace .diff-supprime { background: #ffb8b8; border: 1px solid #808080; }
772 771
 .diff-para-deplace .diff-deplace { background: #b8b8ff; border: 1px solid #808080; }
773 772
 </style>'
774
-		. '<p>' . _T('info_conflit_edition_avis_non_sauvegarde') . '</p>'
775
-		. '<p>' . _T('texte_conflit_edition_correction') . '</p>'
776
-		. "<div style='text-align:" . $GLOBALS['spip_lang_left'] . ";'>"
773
+		. '<p>'._T('info_conflit_edition_avis_non_sauvegarde').'</p>'
774
+		. '<p>'._T('texte_conflit_edition_correction').'</p>'
775
+		. "<div style='text-align:".$GLOBALS['spip_lang_left'].";'>"
777 776
 		. join("\n", $diffs)
778 777
 		. "</div>\n"
779 778
 
Please login to merge, or discard this patch.
ecrire/balise/formulaire_.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 	if (in_array('eval', $trace_fonctions) and in_array('inclure_modele', $trace_fonctions)) {
105 105
 		$k = array_search('inclure_modele', $trace_fonctions);
106 106
 		// les arguments de recuperer_fond() passes par inclure_modele()
107
-		return $trace[$k-1]['args'][1]['args'];
107
+		return $trace[$k - 1]['args'][1]['args'];
108 108
 	}
109 109
 	return false;
110 110
 }
@@ -253,9 +253,9 @@  discard block
 block discarded – undo
253 253
 	if (isset($valeurs['_action'])) {
254 254
 		$securiser_action = charger_fonction('securiser_action', 'inc');
255 255
 		$secu = $securiser_action(reset($valeurs['_action']), end($valeurs['_action']), '', -1);
256
-		$valeurs['_hidden'] = (isset($valeurs['_hidden']) ? $valeurs['_hidden'] : '') .
257
-			"<input type='hidden' name='arg' value='" . $secu['arg'] . "' />"
258
-			. "<input type='hidden' name='hash' value='" . $secu['hash'] . "' />";
256
+		$valeurs['_hidden'] = (isset($valeurs['_hidden']) ? $valeurs['_hidden'] : '').
257
+			"<input type='hidden' name='arg' value='".$secu['arg']."' />"
258
+			. "<input type='hidden' name='hash' value='".$secu['hash']."' />";
259 259
 	}
260 260
 
261 261
 	// empiler la lang en tant que premier argument implicite du CVT
Please login to merge, or discard this patch.