Completed
Push — master ( 11381c...fc67b6 )
by cam
01:49
created
ecrire/inc/charsets.php 1 patch
Spacing   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 		$charset = 'cp1256';
90 90
 	}
91 91
 
92
-	if (find_in_path($charset . '.php', 'charsets/', true)) {
92
+	if (find_in_path($charset.'.php', 'charsets/', true)) {
93 93
 		return $charset;
94 94
 	} else {
95 95
 		spip_logger()->info("Erreur: pas de fichier de conversion 'charsets/$charset'");
@@ -190,38 +190,38 @@  discard block
 block discarded – undo
190 190
 
191 191
 	if (!isset($trans[$charset][$charset_cible])) {
192 192
 		$trans[$charset][$charset_cible] = [
193
-			$p . chr(128) => '€',
194
-			$p . chr(129) => ' ', # pas affecte
195
-			$p . chr(130) => '‚',
196
-			$p . chr(131) => 'ƒ',
197
-			$p . chr(132) => '„',
198
-			$p . chr(133) => '…',
199
-			$p . chr(134) => '†',
200
-			$p . chr(135) => '‡',
201
-			$p . chr(136) => 'ˆ',
202
-			$p . chr(137) => '‰',
203
-			$p . chr(138) => 'Š',
204
-			$p . chr(139) => '‹',
205
-			$p . chr(140) => 'Œ',
206
-			$p . chr(141) => ' ', # pas affecte
207
-			$p . chr(142) => 'Ž',
208
-			$p . chr(143) => ' ', # pas affecte
209
-			$p . chr(144) => ' ', # pas affecte
210
-			$p . chr(145) => '‘',
211
-			$p . chr(146) => '’',
212
-			$p . chr(147) => '“',
213
-			$p . chr(148) => '”',
214
-			$p . chr(149) => '•',
215
-			$p . chr(150) => '–',
216
-			$p . chr(151) => '—',
217
-			$p . chr(152) => '˜',
218
-			$p . chr(153) => '™',
219
-			$p . chr(154) => 'š',
220
-			$p . chr(155) => '›',
221
-			$p . chr(156) => 'œ',
222
-			$p . chr(157) => ' ', # pas affecte
223
-			$p . chr(158) => 'ž',
224
-			$p . chr(159) => 'Ÿ',
193
+			$p.chr(128) => '€',
194
+			$p.chr(129) => ' ', # pas affecte
195
+			$p.chr(130) => '‚',
196
+			$p.chr(131) => 'ƒ',
197
+			$p.chr(132) => '„',
198
+			$p.chr(133) => '…',
199
+			$p.chr(134) => '†',
200
+			$p.chr(135) => '‡',
201
+			$p.chr(136) => 'ˆ',
202
+			$p.chr(137) => '‰',
203
+			$p.chr(138) => 'Š',
204
+			$p.chr(139) => '‹',
205
+			$p.chr(140) => 'Œ',
206
+			$p.chr(141) => ' ', # pas affecte
207
+			$p.chr(142) => 'Ž',
208
+			$p.chr(143) => ' ', # pas affecte
209
+			$p.chr(144) => ' ', # pas affecte
210
+			$p.chr(145) => '‘',
211
+			$p.chr(146) => '’',
212
+			$p.chr(147) => '“',
213
+			$p.chr(148) => '”',
214
+			$p.chr(149) => '•',
215
+			$p.chr(150) => '–',
216
+			$p.chr(151) => '—',
217
+			$p.chr(152) => '˜',
218
+			$p.chr(153) => '™',
219
+			$p.chr(154) => 'š',
220
+			$p.chr(155) => '›',
221
+			$p.chr(156) => 'œ',
222
+			$p.chr(157) => ' ', # pas affecte
223
+			$p.chr(158) => 'ž',
224
+			$p.chr(159) => 'Ÿ',
225 225
 		];
226 226
 		if ($charset_cible != 'unicode') {
227 227
 			foreach ($trans[$charset][$charset_cible] as $k => $c) {
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
 			// Sinon, peut-etre connaissons-nous ce charset ?
368 368
 			if (!isset($trans[$charset]) && (($cset = load_charset($charset)) && is_array($GLOBALS['CHARSET'][$cset]))) {
369 369
 				foreach ($GLOBALS['CHARSET'][$cset] as $key => $val) {
370
-					$trans[$charset][chr($key)] = '&#' . $val . ';';
370
+					$trans[$charset][chr($key)] = '&#'.$val.';';
371 371
 				}
372 372
 			}
373 373
 			if (isset($trans[$charset]) && (is_countable($trans[$charset]) ? count($trans[$charset]) : 0)) {
@@ -432,11 +432,11 @@  discard block
 block discarded – undo
432 432
 					$h = dechex($e);
433 433
 					if ($s = isset($CHARSET_REVERSE[$charset][$e])) {
434 434
 						$s = $CHARSET_REVERSE[$charset][$e];
435
-						$t['&#' . $e . ';'] = $t['&#0' . $e . ';'] = $t['&#00' . $e . ';'] = chr($s);
436
-						$t['&#x' . $h . ';'] = $t['&#x0' . $h . ';'] = $t['&#x00' . $h . ';'] = chr($s);
435
+						$t['&#'.$e.';'] = $t['&#0'.$e.';'] = $t['&#00'.$e.';'] = chr($s);
436
+						$t['&#x'.$h.';'] = $t['&#x0'.$h.';'] = $t['&#x00'.$h.';'] = chr($s);
437 437
 					} else {
438
-						$t['&#' . $e . ';'] = $t['&#0' . $e . ';'] = $t['&#00' . $e . ';'] = chr($e);
439
-						$t['&#x' . $h . ';'] = $t['&#x0' . $h . ';'] = $t['&#x00' . $h . ';'] = chr($e);
438
+						$t['&#'.$e.';'] = $t['&#0'.$e.';'] = $t['&#00'.$e.';'] = chr($e);
439
+						$t['&#x'.$h.';'] = $t['&#x0'.$h.';'] = $t['&#x00'.$h.';'] = chr($e);
440 440
 					}
441 441
 				}
442 442
 			}
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
 			&& is_array($GLOBALS['CHARSET'][$cset]))
483 483
 		) {
484 484
 			foreach ($GLOBALS['CHARSET'][$cset] as $key => $val) {
485
-				$trans[$charset][chr($key)] = unicode2charset('&#' . $val . ';');
485
+				$trans[$charset][chr($key)] = unicode2charset('&#'.$val.';');
486 486
 			}
487 487
 		}
488 488
 		if (is_countable($trans[$charset]) ? count($trans[$charset]) : 0) {
@@ -588,7 +588,7 @@  discard block
 block discarded – undo
588 588
 				}
589 589
 				$thisPos++;
590 590
 			}
591
-			$encodedLetter = '&#' . preg_replace('/^0+/', '', $decimalCode) . ';';
591
+			$encodedLetter = '&#'.preg_replace('/^0+/', '', $decimalCode).';';
592 592
 			$encodedString .= $encodedLetter;
593 593
 		}
594 594
 	}
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
 			} // ignorer le BOM - http://www.unicode.org/faq/utf_bom.html
632 632
 			else {
633 633
 				if ($word != 65279) {
634
-					$texte .= '&#' . $word . ';';
634
+					$texte .= '&#'.$word.';';
635 635
 				}
636 636
 			}
637 637
 		}
@@ -659,13 +659,13 @@  discard block
 block discarded – undo
659 659
 		return chr($num);
660 660
 	}
661 661
 	if ($num < 2048) {
662
-		return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
662
+		return chr(($num >> 6) + 192).chr(($num & 63) + 128);
663 663
 	}
664 664
 	if ($num < 65536) {
665
-		return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
665
+		return chr(($num >> 12) + 224).chr((($num >> 6) & 63) + 128).chr(($num & 63) + 128);
666 666
 	}
667 667
 	if ($num < 1_114_112) {
668
-		return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
668
+		return chr(($num >> 18) + 240).chr((($num >> 12) & 63) + 128).chr((($num >> 6) & 63) + 128).chr(($num & 63) + 128);
669 669
 	}
670 670
 
671 671
 	return '';
@@ -732,7 +732,7 @@  discard block
 block discarded – undo
732 732
 	while (preg_match(',&#0*(\d+);,S', $texte, $regs) && !isset($vu[$regs[1]])) {
733 733
 		$num = $regs[1];
734 734
 		$vu[$num] = true;
735
-		$s = '\u' . sprintf('%04x', $num);
735
+		$s = '\u'.sprintf('%04x', $num);
736 736
 		$texte = str_replace($regs[0], $s, $texte);
737 737
 	}
738 738
 
@@ -749,7 +749,7 @@  discard block
 block discarded – undo
749 749
  **/
750 750
 function javascript_to_unicode($texte) {
751 751
 	while (preg_match(',%u([0-9A-F][0-9A-F][0-9A-F][0-9A-F]),', $texte, $regs)) {
752
-		$texte = str_replace($regs[0], '&#' . hexdec($regs[1]) . ';', $texte);
752
+		$texte = str_replace($regs[0], '&#'.hexdec($regs[1]).';', $texte);
753 753
 	}
754 754
 
755 755
 	return $texte;
@@ -794,7 +794,7 @@  discard block
 block discarded – undo
794 794
 		return '';
795 795
 	}
796 796
 
797
-	$table_translit = 'translit' . $complexe;
797
+	$table_translit = 'translit'.$complexe;
798 798
 
799 799
 	// 2. Translitterer grace a la table predefinie
800 800
 	if (!isset($trans[$complexe])) {
@@ -889,7 +889,7 @@  discard block
 block discarded – undo
889 889
  *    true s'il a un BOM
890 890
  **/
891 891
 function bom_utf8($texte): bool {
892
-	return (substr($texte, 0, 3) === chr(0xEF) . chr(0xBB) . chr(0xBF));
892
+	return (substr($texte, 0, 3) === chr(0xEF).chr(0xBB).chr(0xBF));
893 893
 }
894 894
 
895 895
 /**
@@ -1056,7 +1056,7 @@  discard block
 block discarded – undo
1056 1056
 
1057 1057
 	$lettre1 = mb_strtoupper(spip_substr($c, 0, 1));
1058 1058
 
1059
-	return $lettre1 . spip_substr($c, 1);
1059
+	return $lettre1.spip_substr($c, 1);
1060 1060
 }
1061 1061
 
1062 1062
 /**
Please login to merge, or discard this patch.
ecrire/inc/flock.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 		$contenu = @gzfile($fichier);
122 122
 	}
123 123
 
124
-	return is_array($contenu) ? implode('', $contenu) : (string)$contenu;
124
+	return is_array($contenu) ? implode('', $contenu) : (string) $contenu;
125 125
 }
126 126
 
127 127
 
@@ -321,9 +321,9 @@  discard block
 block discarded – undo
321 321
  */
322 322
 function ecrire_fichier_securise($fichier, $contenu, $ecrire_quand_meme = false, $truncate = true) {
323 323
 	if (!str_ends_with($fichier, '.php')) {
324
-		spip_logger()->info('Erreur de programmation: ' . $fichier . ' doit finir par .php');
324
+		spip_logger()->info('Erreur de programmation: '.$fichier.' doit finir par .php');
325 325
 	}
326
-	$contenu = '<' . "?php die ('Acces interdit'); ?" . ">\n" . $contenu;
326
+	$contenu = '<'."?php die ('Acces interdit'); ?".">\n".$contenu;
327 327
 
328 328
 	return ecrire_fichier($fichier, $contenu, $ecrire_quand_meme, $truncate);
329 329
 }
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
  * @return bool
337 337
  */
338 338
 function ecrire_fichier_calcule_si_modifie($fichier, $contenu, $force = false, $use_copy = false) {
339
-	$fichier_tmp = $fichier . '.last';
339
+	$fichier_tmp = $fichier.'.last';
340 340
 	if (!ecrire_fichier($fichier_tmp, $contenu, true)) {
341 341
 		return false;
342 342
 	}
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
  */
377 377
 function lire_fichier_securise($fichier, &$contenu, $options = []) {
378 378
 	if ($res = lire_fichier($fichier, $contenu, $options)) {
379
-		$contenu = substr((string) $contenu, strlen('<?php die (\'Acces interdit\'); ?>' . "\n"));
379
+		$contenu = substr((string) $contenu, strlen('<?php die (\'Acces interdit\'); ?>'."\n"));
380 380
 	}
381 381
 
382 382
 	return $res;
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
 				$wait = 0;
547 547
 			}
548 548
 		}
549
-		spip_logger()->notice('Probleme de configuration opcache.revalidate_freq ' . $duree . 's : on attend ' . $wait . 's');
549
+		spip_logger()->notice('Probleme de configuration opcache.revalidate_freq '.$duree.'s : on attend '.$wait.'s');
550 550
 		if ($wait) {
551 551
 			sleep($duree + 1);
552 552
 		}
@@ -574,9 +574,9 @@  discard block
 block discarded – undo
574 574
 		if ($item == '.' || $item == '..') {
575 575
 			continue;
576 576
 		}
577
-		if (!supprimer_repertoire($dir . '/' . $item)) {
578
-			@chmod($dir . '/' . $item, 0777);
579
-			if (!supprimer_repertoire($dir . '/' . $item)) {
577
+		if (!supprimer_repertoire($dir.'/'.$item)) {
578
+			@chmod($dir.'/'.$item, 0777);
579
+			if (!supprimer_repertoire($dir.'/'.$item)) {
580 580
 				return false;
581 581
 			}
582 582
 		};
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
 	if (!strlen($subdir)) {
622 622
 		$n = strrpos($base, '/');
623 623
 		if ($n === false) {
624
-			return $nobase ? '' : ($base . '/');
624
+			return $nobase ? '' : ($base.'/');
625 625
 		}
626 626
 		$subdir = substr($base, $n + 1);
627 627
 		$base = substr($base, 0, $n + 1);
@@ -631,14 +631,14 @@  discard block
 block discarded – undo
631 631
 	}
632 632
 
633 633
 	$baseaff = $nobase ? '' : $base;
634
-	if (isset($dirs[$base . $subdir])) {
635
-		return $baseaff . $dirs[$base . $subdir];
634
+	if (isset($dirs[$base.$subdir])) {
635
+		return $baseaff.$dirs[$base.$subdir];
636 636
 	}
637 637
 
638
-	$path = $base . $subdir; # $path = 'IMG/distant/pdf' ou 'IMG/distant_pdf'
638
+	$path = $base.$subdir; # $path = 'IMG/distant/pdf' ou 'IMG/distant_pdf'
639 639
 
640 640
 	if (file_exists("$path/.ok")) {
641
-		return $baseaff . ($dirs[$base . $subdir] = "$subdir/");
641
+		return $baseaff.($dirs[$base.$subdir] = "$subdir/");
642 642
 	}
643 643
 
644 644
 	@mkdir($path, _SPIP_CHMOD);
@@ -648,7 +648,7 @@  discard block
 block discarded – undo
648 648
 		@touch("$path/.ok");
649 649
 		spip_logger()->info("creation $base$subdir/");
650 650
 
651
-		return $baseaff . ($dirs[$base . $subdir] = "$subdir/");
651
+		return $baseaff.($dirs[$base.$subdir] = "$subdir/");
652 652
 	}
653 653
 
654 654
 	// en cas d'echec c'est peut etre tout simplement que le disque est plein :
@@ -659,10 +659,10 @@  discard block
 block discarded – undo
659 659
 	}
660 660
 	// FIXME: throw an Exception…
661 661
 	if (!_DIR_RESTREINT) {
662
-		$base = preg_replace(',^' . _DIR_RACINE . ',', '', $base);
662
+		$base = preg_replace(',^'._DIR_RACINE.',', '', $base);
663 663
 	}
664 664
 	$base .= $subdir;
665
-	raler_fichier($base . '/.ok');
665
+	raler_fichier($base.'/.ok');
666 666
 }
667 667
 
668 668
 
@@ -734,7 +734,7 @@  discard block
 block discarded – undo
734 734
 								$maxfiles - $nbfiles,
735 735
 								$recurs
736 736
 							);
737
-							$fichiers = array_merge((array)$beginning, (array)$end);
737
+							$fichiers = array_merge((array) $beginning, (array) $end);
738 738
 							$nbfiles = count($fichiers);
739 739
 						}
740 740
 					}
Please login to merge, or discard this patch.
ecrire/inc/notifications.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
 	if ($notification = charger_fonction($quoi, 'notifications', true)) {
40 40
 		spip_logger('notifications')->info("$notification($quoi,$id"
41
-			. ($options ? ',' . serialize($options) : '')
41
+			. ($options ? ','.serialize($options) : '')
42 42
 			. ')');
43 43
 		$notification($quoi, $id, $options);
44 44
 	}
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 
158 158
 		job_queue_add(
159 159
 			'envoyer_mail',
160
-			">$email : " . $envoi['sujet'],
160
+			">$email : ".$envoi['sujet'],
161 161
 			[$email, $envoi['sujet'], $envoi['texte'], $envoi['from'], $envoi['headers']],
162 162
 			'inc/'
163 163
 		);
Please login to merge, or discard this patch.
ecrire/inc/cookie.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 function spip_setcookie(
53 53
 	string $name = '',
54 54
 	string $value = '',
55
-	int|array $expires_or_options = 0,
55
+	int | array $expires_or_options = 0,
56 56
 	string $path = '',
57 57
 	string $domain = '',
58 58
 	bool $secure = false,
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
 	// in fine renommer le prefixe si besoin
103 103
 	if (str_starts_with($name, 'spip_')) {
104
-		$name = $GLOBALS['cookie_prefix'] . '_' . substr($name, 5);
104
+		$name = $GLOBALS['cookie_prefix'].'_'.substr($name, 5);
105 105
 	}
106 106
 
107 107
 	#spip_logger('cookies')->info("cookie('$name', '$value', " . json_encode($options, true) . ")");
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 	}
160 160
 	foreach ($_COOKIE as $name => $value) {
161 161
 		if (substr($name, 0, $prefix_long) == $cookie_prefix) {
162
-			$spipname = preg_replace('/^' . $cookie_prefix . '_/', 'spip_', $name);
162
+			$spipname = preg_replace('/^'.$cookie_prefix.'_/', 'spip_', $name);
163 163
 			$_COOKIE[$spipname] = $value;
164 164
 			$GLOBALS[$spipname] = $value;
165 165
 		}
Please login to merge, or discard this patch.
ecrire/base/objets.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -703,7 +703,7 @@  discard block
 block discarded – undo
703 703
 		$infos['url_voir'] = $infos['type'];
704 704
 	}
705 705
 	if (!isset($infos['url_edit'])) {
706
-		$infos['url_edit'] = $infos['url_voir'] . ($infos['editable'] ? '_edit' : '');
706
+		$infos['url_edit'] = $infos['url_voir'].($infos['editable'] ? '_edit' : '');
707 707
 	}
708 708
 	if (!isset($infos['icone_objet'])) {
709 709
 		$infos['icone_objet'] = $infos['type'];
@@ -715,48 +715,48 @@  discard block
 block discarded – undo
715 715
 		$infos['texte_retour'] = 'icone_retour';
716 716
 	}
717 717
 	if (!isset($infos['texte_modifier'])) {
718
-		$infos['texte_modifier'] = $infos['type'] . ':' . 'icone_modifier_' . $infos['type'];
718
+		$infos['texte_modifier'] = $infos['type'].':'.'icone_modifier_'.$infos['type'];
719 719
 	}
720 720
 	if (!isset($infos['texte_creer'])) {
721
-		$infos['texte_creer'] = $infos['type'] . ':' . 'icone_creer_' . $infos['type'];
721
+		$infos['texte_creer'] = $infos['type'].':'.'icone_creer_'.$infos['type'];
722 722
 	}
723 723
 	if (!isset($infos['texte_creer_associer'])) {
724
-		$infos['texte_creer_associer'] = $infos['type'] . ':' . 'texte_creer_associer_' . $infos['type'];
724
+		$infos['texte_creer_associer'] = $infos['type'].':'.'texte_creer_associer_'.$infos['type'];
725 725
 	}
726 726
 	if (!isset($infos['texte_ajouter'])) {
727 727
 		// Ajouter un X
728
-		$infos['texte_ajouter'] = $infos['type'] . ':' . 'texte_ajouter_' . $infos['type'];
728
+		$infos['texte_ajouter'] = $infos['type'].':'.'texte_ajouter_'.$infos['type'];
729 729
 	}
730 730
 	if (!isset($infos['texte_objets'])) {
731
-		$infos['texte_objets'] = $infos['type'] . ':' . 'titre_' . $infos['table_objet'];
731
+		$infos['texte_objets'] = $infos['type'].':'.'titre_'.$infos['table_objet'];
732 732
 	}
733 733
 	if (!isset($infos['texte_objet'])) {
734
-		$infos['texte_objet'] = $infos['type'] . ':' . 'titre_' . $infos['type'];
734
+		$infos['texte_objet'] = $infos['type'].':'.'titre_'.$infos['type'];
735 735
 	}
736 736
 	if (!isset($infos['texte_logo_objet'])) {
737 737
 		// objet:titre_logo_objet "Logo de ce X"
738
-		$infos['texte_logo_objet'] = $infos['type'] . ':' . 'titre_logo_' . $infos['type'];
738
+		$infos['texte_logo_objet'] = $infos['type'].':'.'titre_logo_'.$infos['type'];
739 739
 	}
740 740
 	if (!isset($infos['texte_langue_objet'])) {
741 741
 		// objet:texte_langue_objet "Langue de ce X"
742
-		$infos['texte_langue_objet'] = $infos['type'] . ':' . 'titre_langue_' . $infos['type'];
742
+		$infos['texte_langue_objet'] = $infos['type'].':'.'titre_langue_'.$infos['type'];
743 743
 	}
744 744
 	if (!isset($infos['texte_definir_comme_traduction_objet'])) {
745 745
 		// "Ce X est une traduction du X numéro :"
746
-		$infos['texte_definir_comme_traduction_objet'] = $infos['type'] . ':' . 'texte_definir_comme_traduction_' . $infos['type'];
746
+		$infos['texte_definir_comme_traduction_objet'] = $infos['type'].':'.'texte_definir_comme_traduction_'.$infos['type'];
747 747
 	}
748 748
 
749 749
 	// objet:info_aucun_objet
750 750
 	if (!isset($infos['info_aucun_objet'])) {
751
-		$infos['info_aucun_objet'] = $infos['type'] . ':' . 'info_aucun_' . $infos['type'];
751
+		$infos['info_aucun_objet'] = $infos['type'].':'.'info_aucun_'.$infos['type'];
752 752
 	}
753 753
 	// objet:info_1_objet
754 754
 	if (!isset($infos['info_1_objet'])) {
755
-		$infos['info_1_objet'] = $infos['type'] . ':' . 'info_1_' . $infos['type'];
755
+		$infos['info_1_objet'] = $infos['type'].':'.'info_1_'.$infos['type'];
756 756
 	}
757 757
 	// objet:info_nb_objets
758 758
 	if (!isset($infos['info_nb_objets'])) {
759
-		$infos['info_nb_objets'] = $infos['type'] . ':' . 'info_nb_' . $infos['table_objet'];
759
+		$infos['info_nb_objets'] = $infos['type'].':'.'info_nb_'.$infos['table_objet'];
760 760
 	}
761 761
 
762 762
 	if (!isset($infos['champs_editables'])) {
@@ -954,7 +954,7 @@  discard block
 block discarded – undo
954 954
 		}
955 955
 		$ts = sql_alltable(null, $serveur); // toutes les tables "spip_" (ou prefixe perso)
956 956
 		$connexion = $GLOBALS['connexions'][$serveur ?: 0];
957
-		$spip = $connexion['prefixe'] . '_';
957
+		$spip = $connexion['prefixe'].'_';
958 958
 		foreach ($ts as $t) {
959 959
 			$t = substr((string) $t, strlen($spip));
960 960
 			$tables[$serveur]["spip_$t"] = $t;
@@ -1007,7 +1007,7 @@  discard block
 block discarded – undo
1007 1007
  * @return string
1008 1008
  *     Nom de l'objet
1009 1009
  **/
1010
-function table_objet(string $type, string|false $serveur = ''): string {
1010
+function table_objet(string $type, string | false $serveur = ''): string {
1011 1011
 
1012 1012
 	if ($type) {
1013 1013
 		$type = preg_replace(',^spip_|^id_|s$,', '', $type);
@@ -1024,9 +1024,9 @@  discard block
 block discarded – undo
1024 1024
 	if ($serveur !== false) {
1025 1025
 		$t = lister_tables_spip($serveur);
1026 1026
 		$trouver_table = charger_fonction('trouver_table', 'base');
1027
-		$typetrim = rtrim($type, 's') . 's';
1027
+		$typetrim = rtrim($type, 's').'s';
1028 1028
 		if (
1029
-			(isset($t[$typetrim]) || in_array($typetrim, $t)) && ($desc = $trouver_table(rtrim($type, 's') . 's', $serveur))
1029
+			(isset($t[$typetrim]) || in_array($typetrim, $t)) && ($desc = $trouver_table(rtrim($type, 's').'s', $serveur))
1030 1030
 		) {
1031 1031
 			return $desc['id_table'];
1032 1032
 		} elseif (
@@ -1035,11 +1035,11 @@  discard block
 block discarded – undo
1035 1035
 			return $desc['id_table'];
1036 1036
 		}
1037 1037
 
1038
-		spip_logger()->info('table_objet(' . $type . ') calculee sans verification');
1038
+		spip_logger()->info('table_objet('.$type.') calculee sans verification');
1039 1039
 		#spip_logger('db')->debug(debug_backtrace());
1040 1040
 	}
1041 1041
 
1042
-	return rtrim($type, 's') . 's'; # cas historique ne devant plus servir, sauf si $serveur=false
1042
+	return rtrim($type, 's').'s'; # cas historique ne devant plus servir, sauf si $serveur=false
1043 1043
 }
1044 1044
 
1045 1045
 /**
@@ -1059,7 +1059,7 @@  discard block
 block discarded – undo
1059 1059
  * @return string
1060 1060
  *     Nom de la table SQL
1061 1061
  **/
1062
-function table_objet_sql(string $type, string|false $serveur = ''): string {
1062
+function table_objet_sql(string $type, string | false $serveur = ''): string {
1063 1063
 	$nom = table_objet($type, $serveur);
1064 1064
 	if (!strlen($nom)) {
1065 1065
 		return '';
@@ -1151,7 +1151,7 @@  discard block
 block discarded – undo
1151 1151
  * @return string|null
1152 1152
  *     Type de l'objet
1153 1153
  **/
1154
-function objet_type(string $table_objet, string|false $serveur = ''): ?string {
1154
+function objet_type(string $table_objet, string | false $serveur = ''): ?string {
1155 1155
 	if (!$table_objet) {
1156 1156
 		return null;
1157 1157
 	}
@@ -1223,7 +1223,7 @@  discard block
 block discarded – undo
1223 1223
 function objet_test_si_publie($objet, $id_objet, $serveur = '') {
1224 1224
 	// voir si une fonction est definie pour faire le boulot
1225 1225
 	// elle a la priorite dans ce cas
1226
-	if ($f = charger_fonction($objet . '_test_si_publie', 'base', true)) {
1226
+	if ($f = charger_fonction($objet.'_test_si_publie', 'base', true)) {
1227 1227
 		return $f($objet, $id_objet, $serveur);
1228 1228
 	}
1229 1229
 
@@ -1245,7 +1245,7 @@  discard block
 block discarded – undo
1245 1245
 		$boucle->sql_serveur = $serveur;
1246 1246
 		$boucle->select[] = $id_table_objet;
1247 1247
 		$boucle->from[$table_objet] = table_objet_sql($objet, $serveur);
1248
-		$boucle->where[] = $id_table . '.' . $id_table_objet . '=' . (int) $id_objet;
1248
+		$boucle->where[] = $id_table.'.'.$id_table_objet.'='.(int) $id_objet;
1249 1249
 
1250 1250
 		$boucle->descr['nom'] = 'objet_test_si_publie'; // eviter notice php
1251 1251
 		$boucle->descr['sourcefile'] = 'internal';
@@ -1368,7 +1368,7 @@  discard block
 block discarded – undo
1368 1368
 						? "{$parent_methode['source_champ']} = $id_objet"
1369 1369
 						: "$cle_objet = $id_objet";
1370 1370
 					if (isset($parent_methode['source_champ_type'])) {
1371
-						$where[] = "{$parent_methode['source_champ_type']} = " . sql_quote($objet);
1371
+						$where[] = "{$parent_methode['source_champ_type']} = ".sql_quote($objet);
1372 1372
 					}
1373 1373
 					// -- Condition supplémentaire sur la détection du parent
1374 1374
 					if (isset($parent_methode['table_condition'])) {
@@ -1492,11 +1492,11 @@  discard block
 block discarded – undo
1492 1492
 			$where = [];
1493 1493
 			// -- L'identifiant du parent
1494 1494
 			if (isset($_methode_parent['champ'])) {
1495
-				$where[] = $_methode_parent['champ'] . ' = ' . $id_objet;
1495
+				$where[] = $_methode_parent['champ'].' = '.$id_objet;
1496 1496
 			}
1497 1497
 			// -- Si le parent est variable
1498 1498
 			if (isset($_methode_parent['champ_type'])) {
1499
-				$where[] = $_methode_parent['champ_type'] . ' = ' . sql_quote($objet);
1499
+				$where[] = $_methode_parent['champ_type'].' = '.sql_quote($objet);
1500 1500
 			}
1501 1501
 
1502 1502
 			// On détermine la table, le champ id des enfants et on complète éventuellement les conditions
Please login to merge, or discard this patch.
ecrire/base/delete_all.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,5 +50,5 @@
 block discarded – undo
50 50
 	}
51 51
 	$d = is_countable($delete) ? count($delete) : 0;
52 52
 	$r = count($res);
53
-	spip_logger()->notice("Tables detruites: $r sur $d: " . implode(', ', $res));
53
+	spip_logger()->notice("Tables detruites: $r sur $d: ".implode(', ', $res));
54 54
 }
Please login to merge, or discard this patch.
ecrire/base/connect_sql.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 if (!defined('_ECRIRE_INC_VERSION')) {
18 18
 	return;
19 19
 }
20
-require_once _ROOT_RESTREINT . 'base/objets.php';
20
+require_once _ROOT_RESTREINT.'base/objets.php';
21 21
 
22 22
 
23 23
 /**
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 				defined('_DIR_CONNECT')
63 63
 				&& preg_match('/^[\w\.]*$/', $serveur)
64 64
 			) {
65
-				$f = _DIR_CONNECT . $serveur . '.php';
65
+				$f = _DIR_CONNECT.$serveur.'.php';
66 66
 				if (!is_readable($f) && !$install) {
67 67
 					// chercher une declaration de serveur dans le path
68 68
 					// qui peut servir à des plugins à declarer des connexions à une base sqlite
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
 	// chargement de la version du jeu de fonctions
110 110
 	// si pas dans le fichier par defaut
111 111
 	$type = $GLOBALS['db_ok']['type'];
112
-	$jeu = 'spip_' . $type . '_functions_' . $version;
113
-	if (!isset($GLOBALS[$jeu]) && !find_in_path($type . '_' . $version . '.php', 'req/', true)) {
112
+	$jeu = 'spip_'.$type.'_functions_'.$version;
113
+	if (!isset($GLOBALS[$jeu]) && !find_in_path($type.'_'.$version.'.php', 'req/', true)) {
114 114
 		spip_logger()->emergency("spip_connect: serveur $index version '$version' non defini pour '$type'");
115 115
 		// ne plus reessayer
116 116
 		return $GLOBALS['connexions'][$index][$version] = [];
@@ -170,8 +170,8 @@  discard block
 block discarded – undo
170 170
 	$connexion = spip_connect($serveur);
171 171
 	$e = sql_errno($serveur);
172 172
 	$t = ($connexion['type'] ?? 'sql');
173
-	$m = "Erreur $e de $t: " . sql_error($serveur) . "\nin " . sql_error_backtrace() . "\n" . trim((string) $connexion['last']);
174
-	$f = $t . $serveur;
173
+	$m = "Erreur $e de $t: ".sql_error($serveur)."\nin ".sql_error_backtrace()."\n".trim((string) $connexion['last']);
174
+	$f = $t.$serveur;
175 175
 	spip_logger($f)->error($m);
176 176
 }
177 177
 
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
 	// si en cours d'installation ou si db=@test@ on ne pose rien
259 259
 	// car c'est un test de connexion
260 260
 	if (!defined('_ECRIRE_INSTALL') && $db !== '@test@') {
261
-		$f = _DIR_TMP . $type . '.' . substr(md5($host . $port . $db), 0, 8) . '.out';
261
+		$f = _DIR_TMP.$type.'.'.substr(md5($host.$port.$db), 0, 8).'.out';
262 262
 	} elseif ($db == '@test@') {
263 263
 		$db = '';
264 264
 	}
@@ -377,11 +377,11 @@  discard block
 block discarded – undo
377 377
 	} elseif (is_array($a)) {
378 378
 		return implode(',', array_map('_q', $a));
379 379
 	} elseif (is_scalar($a)) {
380
-		return ("'" . addslashes($a) . "'");
380
+		return ("'".addslashes($a)."'");
381 381
 	} elseif ($a === null) {
382 382
 		return "''";
383 383
 	}
384
-	throw new \RuntimeException('Can’t use _q with ' . gettype($a));
384
+	throw new \RuntimeException('Can’t use _q with '.gettype($a));
385 385
 }
386 386
 
387 387
 /**
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
 				$next = reset($textes);
433 433
 				if (
434 434
 					str_starts_with((string) $next, "'")
435
-					&& strpos($query_echappees, $part . $next, $currentpos) === $nextpos
435
+					&& strpos($query_echappees, $part.$next, $currentpos) === $nextpos
436 436
 				) {
437 437
 					$part .= array_shift($textes);
438 438
 				}
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
 			$parts[$k] = [
445 445
 				'texte' => $part,
446 446
 				'position' => $nextpos,
447
-				'placeholder' => '%' . $k . '$s',
447
+				'placeholder' => '%'.$k.'$s',
448 448
 			];
449 449
 			$currentpos = $nextpos + strlen((string) $part);
450 450
 		}
Please login to merge, or discard this patch.
ecrire/base/dump.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
  * @return string
38 38
  **/
39 39
 function base_dump_meta_name($rub) {
40
-	return $meta = "status_dump_{$rub}_" . abs($GLOBALS['visiteur_session']['id_auteur']);
40
+	return $meta = "status_dump_{$rub}_".abs($GLOBALS['visiteur_session']['id_auteur']);
41 41
 }
42 42
 
43 43
 /**
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	$connexion = $GLOBALS['connexions'][$serveur ?: 0];
83 83
 	$prefixe = $connexion['prefixe'];
84 84
 
85
-	$p = '/^' . $prefixe . '/';
85
+	$p = '/^'.$prefixe.'/';
86 86
 	$res = $tables;
87 87
 	foreach (sql_alltable(null, $serveur) as $t) {
88 88
 		if (preg_match($p, (string) $t)) {
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
 	$trouver_table = charger_fonction('trouver_table', 'base');
342 342
 
343 343
 	spip_logger('base')->notice(
344
-		'Vider ' . count($tables) . " tables sur serveur '$serveur' : " . implode(', ', $tables),
344
+		'Vider '.count($tables)." tables sur serveur '$serveur' : ".implode(', ', $tables),
345 345
 	);
346 346
 	foreach ($tables as $table) {
347 347
 		// sur le serveur principal, il ne faut pas supprimer l'auteur loge !
@@ -379,14 +379,14 @@  discard block
 block discarded – undo
379 379
 	// s'asurer qu'on a pas deja fait la manip !
380 380
 	if ($GLOBALS['visiteur_session']['id_auteur'] > 0 && sql_countsel('spip_auteurs', 'id_auteur>0')) {
381 381
 		spip_logger('dump')->notice(
382
-			'Conserver copieur dans id_auteur=' . $GLOBALS['visiteur_session']['id_auteur'] . " pour le serveur '$serveur'",
382
+			'Conserver copieur dans id_auteur='.$GLOBALS['visiteur_session']['id_auteur']." pour le serveur '$serveur'",
383 383
 		);
384 384
 		sql_delete('spip_auteurs', 'id_auteur<0', $serveur);
385 385
 		if ($move) {
386 386
 			sql_updateq(
387 387
 				'spip_auteurs',
388 388
 				['id_auteur' => -$GLOBALS['visiteur_session']['id_auteur']],
389
-				'id_auteur=' . (int) $GLOBALS['visiteur_session']['id_auteur'],
389
+				'id_auteur='.(int) $GLOBALS['visiteur_session']['id_auteur'],
390 390
 				[],
391 391
 				$serveur
392 392
 			);
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
 			$row = sql_fetsel(
395 395
 				'*',
396 396
 				'spip_auteurs',
397
-				'id_auteur=' . $GLOBALS['visiteur_session']['id_auteur'],
397
+				'id_auteur='.$GLOBALS['visiteur_session']['id_auteur'],
398 398
 				'',
399 399
 				'',
400 400
 				'',
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
 		$desc_dest = sql_showtable($table, true, $serveur_dest);
478 478
 	}
479 479
 	if (!$desc_dest) {
480
-		spip_logger('dump')->error("Erreur creation '$table' sur serveur '$serveur_dest'" . var_export($desc, 1));
480
+		spip_logger('dump')->error("Erreur creation '$table' sur serveur '$serveur_dest'".var_export($desc, 1));
481 481
 	}
482 482
 
483 483
 	return $desc_dest;
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
 	$logger = spip_logger('dump');
541 541
 
542 542
 	$logger->notice(
543
-		'Copier ' . count($tables) . " tables de '$serveur_source' vers '$serveur_dest'",
543
+		'Copier '.count($tables)." tables de '$serveur_source' vers '$serveur_dest'",
544 544
 	);
545 545
 
546 546
 	if (!$inserer_copie = charger_fonction($fonction_base_inserer, $racine_fonctions, true)) {
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
 		$tables = array_diff($tables, ['spip_meta']);
596 596
 		$tables[] = 'spip_meta';
597 597
 	}
598
-	$logger->info('Tables a copier :' . implode(', ', $tables));
598
+	$logger->info('Tables a copier :'.implode(', ', $tables));
599 599
 
600 600
 	$trouver_table = charger_fonction('trouver_table', 'base');
601 601
 
@@ -674,7 +674,7 @@  discard block
 block discarded – undo
674 674
 					if ($n == $status['tables_copiees'][$table]) {
675 675
 						break;
676 676
 					}
677
-					$logger->notice("recopie $table " . $status['tables_copiees'][$table]);
677
+					$logger->notice("recopie $table ".$status['tables_copiees'][$table]);
678 678
 					if ($callback_progression) {
679 679
 						$callback_progression($status['tables_copiees'][$table], 0, $table);
680 680
 					}
@@ -689,19 +689,19 @@  discard block
 block discarded – undo
689 689
 				}
690 690
 				$status['tables_copiees'][$table] = ($status['tables_copiees'][$table] ? -$status['tables_copiees'][$table] : 'zero');
691 691
 				ecrire_fichier($status_file, serialize($status));
692
-				$logger->info('tables_recopiees ' . implode(',', array_keys($status['tables_copiees'])));
692
+				$logger->info('tables_recopiees '.implode(',', array_keys($status['tables_copiees'])));
693 693
 				if ($callback_progression) {
694 694
 					$callback_progression($status['tables_copiees'][$table], $status['tables_copiees'][$table], $table);
695 695
 				}
696 696
 			} else {
697 697
 				if ($status['tables_copiees'][$table] < 0) {
698
-					$logger->info("Table $table deja copiee : " . $status['tables_copiees'][$table]);
698
+					$logger->info("Table $table deja copiee : ".$status['tables_copiees'][$table]);
699 699
 				}
700 700
 				if ($callback_progression) {
701 701
 					$callback_progression(
702 702
 						0,
703 703
 						$status['tables_copiees'][$table],
704
-						"$table" . ((is_numeric($status['tables_copiees'][$table]) && $status['tables_copiees'][$table] >= 0) ? '[Echec]' : '')
704
+						"$table".((is_numeric($status['tables_copiees'][$table]) && $status['tables_copiees'][$table] >= 0) ? '[Echec]' : '')
705 705
 					);
706 706
 				}
707 707
 			}
@@ -716,9 +716,9 @@  discard block
 block discarded – undo
716 716
 	// abandonner
717 717
 	if ((is_countable($status['tables_copiees']) ? count($status['tables_copiees']) : 0) < count($tables)) {
718 718
 		$logger->error(
719
-			'Nombre de tables copiees incorrect : ' . (is_countable($status['tables_copiees']) ? count($status['tables_copiees']) : 0) . '/' . count($tables),
719
+			'Nombre de tables copiees incorrect : '.(is_countable($status['tables_copiees']) ? count($status['tables_copiees']) : 0).'/'.count($tables),
720 720
 		);
721
-		$status['errors'][] = 'Nombre de tables copiees incorrect : ' . (is_countable($status['tables_copiees']) ? count($status['tables_copiees']) : 0) . '/' . count($tables);
721
+		$status['errors'][] = 'Nombre de tables copiees incorrect : '.(is_countable($status['tables_copiees']) ? count($status['tables_copiees']) : 0).'/'.count($tables);
722 722
 		ecrire_fichier($status_file, serialize($status));
723 723
 	}
724 724
 
@@ -750,7 +750,7 @@  discard block
 block discarded – undo
750 750
 	$nb = sql_countsel($table, '', '', '', $serveur_dest);
751 751
 	if ($nb - $nb1 < count($rows)) {
752 752
 		spip_logger('dump')->notice(
753
-			'base_inserer_copie : ' . ($nb - $nb1) . ' insertions au lieu de ' . count($rows) . '. On retente 1 par 1',
753
+			'base_inserer_copie : '.($nb - $nb1).' insertions au lieu de '.count($rows).'. On retente 1 par 1',
754 754
 		);
755 755
 		foreach ($rows as $row) {
756 756
 			// si l'enregistrement est deja en base, ca fera un echec ou un doublon
@@ -761,7 +761,7 @@  discard block
 block discarded – undo
761 761
 		$nb = sql_countsel($table, '', '', '', $serveur_dest);
762 762
 		if ($nb - $nb1 < count($rows)) {
763 763
 			spip_logger('dump')->error(
764
-				'base_inserer_copie : ' . ($nb - $nb1) . ' insertions au lieu de ' . count($rows) . ' apres insertion 1 par 1',
764
+				'base_inserer_copie : '.($nb - $nb1).' insertions au lieu de '.count($rows).' apres insertion 1 par 1',
765 765
 			);
766 766
 			$r = false;
767 767
 		}
Please login to merge, or discard this patch.
ecrire/base/upgrade.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 	@spip_unlink(_CACHE_PLUGINS_OPT);
78 78
 	@spip_unlink(_CACHE_PLUGINS_FCT);
79 79
 	@spip_unlink(_CACHE_CHEMIN);
80
-	@spip_unlink(_DIR_TMP . 'plugin_xml_cache.gz');
80
+	@spip_unlink(_DIR_TMP.'plugin_xml_cache.gz');
81 81
 
82 82
 	include_spip('inc/auth');
83 83
 	auth_synchroniser_distant();
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 	$version_installee = $GLOBALS['meta']['version_installee'] ?? null;
117 117
 
118 118
 	spip_logger('maj')->notice(
119
-		"Version anterieure: $version_installee. Courante: " . $GLOBALS['spip_version_base'],
119
+		"Version anterieure: $version_installee. Courante: ".$GLOBALS['spip_version_base'],
120 120
 	);
121 121
 	if (!$version_installee || $GLOBALS['spip_version_base'] < $version_installee) {
122 122
 		sql_replace(
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 		if (!is_array($res)) {
148 148
 			spip_logger('maj')->error("Pb d'acces SQL a la mise a jour");
149 149
 		} else {
150
-			echo _T('avis_operation_echec') . ' ' . implode(' ', $res);
150
+			echo _T('avis_operation_echec').' '.implode(' ', $res);
151 151
 			echo install_fin_html();
152 152
 		}
153 153
 	}
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 			if (!is_array($res)) {
238 238
 				spip_logger('maj')->error("Pb d'acces SQL a la mise a jour");
239 239
 			} else {
240
-				echo '<p>' . _T('avis_operation_echec') . ' ' . implode(' ', $res) . '</p>';
240
+				echo '<p>'._T('avis_operation_echec').' '.implode(' ', $res).'</p>';
241 241
 			}
242 242
 		}
243 243
 	}
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
 	echo(install_debut_html($titre));
297 297
 	// script de rechargement auto sur timeout
298 298
 	$redirect = generer_url_ecrire('upgrade', "reinstall=$installee&meta=$meta&table=$table", true);
299
-	echo http_script("window.setTimeout('location.href=\"" . $redirect . "\";'," . ($timeout * 1000) . ')');
299
+	echo http_script("window.setTimeout('location.href=\"".$redirect."\";',".($timeout * 1000).')');
300 300
 	echo "<div style='text-align: left'>\n";
301 301
 	if (ob_get_level()) {
302 302
 		ob_flush();
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
  * @return int
426 426
  */
427 427
 function serie_alter($serie, $q = [], $meta = '', $table = 'meta', $redirect = '') {
428
-	$meta2 = $meta . '_maj_' . $serie;
428
+	$meta2 = $meta.'_maj_'.$serie;
429 429
 	$etape = 0;
430 430
 	if (isset($GLOBALS[$table][$meta2])) {
431 431
 		$etape = (int) $GLOBALS[$table][$meta2];
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
 				&& function_exists($f = array_shift($r))
439 439
 			) {
440 440
 				// note: $r (arguments de la fonction $f) peut avoir des données tabulaires
441
-				spip_logger('maj')->notice("$msg: $f " . @implode(',', $r));
441
+				spip_logger('maj')->notice("$msg: $f ".@implode(',', $r));
442 442
 				// pour les fonctions atomiques sql_xx
443 443
 				// on enregistre le meta avant de lancer la fonction,
444 444
 				// de maniere a eviter de boucler sur timeout
Please login to merge, or discard this patch.