Completed
Push — master ( f7b2ca...a7c3c2 )
by cam
04:35
created
ecrire/inc/utils.php 1 patch
Spacing   +131 added lines, -133 removed lines patch added patch discarded remove patch
@@ -53,12 +53,12 @@  discard block
 block discarded – undo
53 53
 	if (strlen($dossier) and substr($dossier, -1) != '/') {
54 54
 		$dossier .= '/';
55 55
 	}
56
-	$f = str_replace('/', '_', $dossier) . $nom;
56
+	$f = str_replace('/', '_', $dossier).$nom;
57 57
 
58 58
 	if (function_exists($f)) {
59 59
 		return $f;
60 60
 	}
61
-	if (function_exists($g = $f . '_dist')) {
61
+	if (function_exists($g = $f.'_dist')) {
62 62
 		return $g;
63 63
 	}
64 64
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
 	// passer en minuscules (cf les balises de formulaires)
80 80
 	// et inclure le fichier
81
-	if (!$inc = include_spip($dossier . ($d = strtolower($nom)))
81
+	if (!$inc = include_spip($dossier.($d = strtolower($nom)))
82 82
 		// si le fichier truc/machin/nom.php n'existe pas,
83 83
 		// la fonction peut etre definie dans truc/machin.php qui regroupe plusieurs petites fonctions
84 84
 		and strlen(dirname($dossier)) and dirname($dossier) != '.'
@@ -97,13 +97,13 @@  discard block
 block discarded – undo
97 97
 	}
98 98
 
99 99
 	// Echec : message d'erreur
100
-	spip_log("fonction $nom ($f ou $g) indisponible" .
100
+	spip_log("fonction $nom ($f ou $g) indisponible".
101 101
 		($inc ? "" : " (fichier $d absent de $dossier)"));
102 102
 
103 103
 	include_spip('inc/minipres');
104 104
 	echo minipres(_T('forum_titre_erreur'),
105
-		_T('fichier_introuvable', array('fichier' => '<b>' . spip_htmlentities($d) . '</b>')),
106
-		array('all_inline'=>true,'status'=>404));
105
+		_T('fichier_introuvable', array('fichier' => '<b>'.spip_htmlentities($d).'</b>')),
106
+		array('all_inline'=>true, 'status'=>404));
107 107
 	exit;
108 108
 }
109 109
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
  *     - string : chemin du fichier trouvé
149 149
  **/
150 150
 function include_spip($f, $include = true) {
151
-	return find_in_path($f . '.php', '', $include);
151
+	return find_in_path($f.'.php', '', $include);
152 152
 }
153 153
 
154 154
 /**
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
  *     - string : chemin du fichier trouvé
169 169
  **/
170 170
 function require_spip($f) {
171
-	return find_in_path($f . '.php', '', 'required');
171
+	return find_in_path($f.'.php', '', 'required');
172 172
 }
173 173
 
174 174
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 		// donc il faut l'inclure "en globals"
186 186
 		if ($f = find_in_path('mes_fonctions.php')) {
187 187
 			global $dossier_squelettes;
188
-			include_once(_ROOT_CWD . $f);
188
+			include_once(_ROOT_CWD.$f);
189 189
 		}
190 190
 
191 191
 		if (@is_readable(_CACHE_PLUGINS_FCT)) {
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 	}
289 289
 
290 290
 	// appliquer notre fonction si elle existe
291
-	$fonc = 'execute_pipeline_' . strtolower($action);
291
+	$fonc = 'execute_pipeline_'.strtolower($action);
292 292
 	if (function_exists($fonc)) {
293 293
 		$val = $fonc($val);
294 294
 	} // plantage ?
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
 function spip_log($message = null, $name = null) {
353 353
 	static $pre = array();
354 354
 	static $log;
355
-	preg_match('/^([a-z_]*)\.?(\d)?$/iS', (string)$name, $regs);
355
+	preg_match('/^([a-z_]*)\.?(\d)?$/iS', (string) $name, $regs);
356 356
 	if (!isset($regs[1]) or !$logname = $regs[1]) {
357 357
 		$logname = null;
358 358
 	}
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
 		if (!is_string($message)) {
381 381
 			$message = print_r($message, true);
382 382
 		}
383
-		$log($pre[$niveau] . ' ' . $message, $logname);
383
+		$log($pre[$niveau].' '.$message, $logname);
384 384
 	}
385 385
 }
386 386
 
@@ -493,9 +493,9 @@  discard block
 block discarded – undo
493 493
  * @param string $sanitize_function
494 494
  * @return array|mixed|string
495 495
  */
496
-function spip_sanitize_from_request($value, $key, $sanitize_function='entites_html') {
496
+function spip_sanitize_from_request($value, $key, $sanitize_function = 'entites_html') {
497 497
 	if (is_array($value)) {
498
-		if ($key=='*') {
498
+		if ($key == '*') {
499 499
 			$key = array_keys($value);
500 500
 		}
501 501
 		if (!is_array($key)) {
@@ -580,7 +580,7 @@  discard block
 block discarded – undo
580 580
 		$a = './';
581 581
 	}
582 582
 
583
-	$regexp = ',^(' . str_replace('[]', '\[\]', $c) . '[[]?[]]?)(=.*)?$,';
583
+	$regexp = ',^('.str_replace('[]', '\[\]', $c).'[[]?[]]?)(=.*)?$,';
584 584
 	$ajouts = array_flip(explode('|', $c));
585 585
 	$u = is_array($v) ? $v : rawurlencode($v);
586 586
 	$testv = (is_array($v) ? count($v) : strlen($v));
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
 			// Ajout. Pour une variable, remplacer au meme endroit,
608 608
 			// pour un tableau ce sera fait dans la prochaine boucle
609 609
 			elseif (substr($r[1], -2) != '[]') {
610
-				$url[$n] = $r[1] . '=' . $u;
610
+				$url[$n] = $r[1].'='.$u;
611 611
 				unset($ajouts[$r[1]]);
612 612
 			}
613 613
 			// Pour les tableaux on laisse tomber les valeurs de
@@ -627,11 +627,11 @@  discard block
 block discarded – undo
627 627
 	} elseif ($testv) {
628 628
 		foreach ($ajouts as $k => $n) {
629 629
 			if (!is_array($v)) {
630
-				$url[] = $k . '=' . $u;
630
+				$url[] = $k.'='.$u;
631 631
 			} else {
632
-				$id = (substr($k, -2) == '[]') ? $k : ($k . "[]");
632
+				$id = (substr($k, -2) == '[]') ? $k : ($k."[]");
633 633
 				foreach ($v as $w) {
634
-					$url[] = $id . '=' . (is_array($w) ? 'Array' : $w);
634
+					$url[] = $id.'='.(is_array($w) ? 'Array' : $w);
635 635
 				}
636 636
 			}
637 637
 		}
@@ -642,10 +642,10 @@  discard block
 block discarded – undo
642 642
 
643 643
 	// recomposer l'adresse
644 644
 	if ($url) {
645
-		$a .= '?' . join($sep, $url);
645
+		$a .= '?'.join($sep, $url);
646 646
 	}
647 647
 
648
-	return $a . $ancre;
648
+	return $a.$ancre;
649 649
 }
650 650
 
651 651
 /**
@@ -677,7 +677,7 @@  discard block
 block discarded – undo
677 677
 			translitteration($ancre)
678 678
 		);
679 679
 	}
680
-	return $url . (strlen($ancre) ? '#' . $ancre : '');
680
+	return $url.(strlen($ancre) ? '#'.$ancre : '');
681 681
 }
682 682
 
683 683
 /**
@@ -789,7 +789,7 @@  discard block
 block discarded – undo
789 789
  * @return bool
790 790
  */
791 791
 function test_plugin_actif($plugin) {
792
-	return ($plugin and defined('_DIR_PLUGIN_' . strtoupper($plugin))) ? true : false;
792
+	return ($plugin and defined('_DIR_PLUGIN_'.strtoupper($plugin))) ? true : false;
793 793
 }
794 794
 
795 795
 /**
@@ -857,8 +857,7 @@  discard block
 block discarded – undo
857 857
 		// pour les chaines non traduites, assurer un service minimum
858 858
 		if (!$GLOBALS['test_i18n'] and (_request('var_mode') != 'traduction')) {
859 859
 			$text = str_replace('_', ' ',
860
-				(($n = strpos($text, ':')) === false ? $texte :
861
-					substr($texte, $n + 1)));
860
+				(($n = strpos($text, ':')) === false ? $texte : substr($texte, $n + 1)));
862 861
 		}
863 862
 		$o['class'] = null;
864 863
 
@@ -930,7 +929,7 @@  discard block
 block discarded – undo
930 929
 		// Si des variables n'ont pas ete inserees, le signaler
931 930
 		// (chaines de langues pas a jour)
932 931
 		if ($args) {
933
-			spip_log("$f:  variables inutilisees " . join(', ', array_keys($args)), _LOG_DEBUG);
932
+			spip_log("$f:  variables inutilisees ".join(', ', array_keys($args)), _LOG_DEBUG);
934 933
 		}
935 934
 	}
936 935
 
@@ -954,7 +953,7 @@  discard block
 block discarded – undo
954 953
 function joli_repertoire($rep) {
955 954
 	$a = substr($rep, 0, 1);
956 955
 	if ($a <> '.' and $a <> '/') {
957
-		$rep = (_DIR_RESTREINT ? '' : _DIR_RESTREINT_ABS) . $rep;
956
+		$rep = (_DIR_RESTREINT ? '' : _DIR_RESTREINT_ABS).$rep;
958 957
 	}
959 958
 	$rep = preg_replace(',(^\.\.\/),', '', $rep);
960 959
 
@@ -1008,7 +1007,7 @@  discard block
 block discarded – undo
1008 1007
 			$p -= ($x * 1000);
1009 1008
 		}
1010 1009
 
1011
-		return $s . sprintf($s ? "%07.3f ms" : "%.3f ms", $p);
1010
+		return $s.sprintf($s ? "%07.3f ms" : "%.3f ms", $p);
1012 1011
 	}
1013 1012
 }
1014 1013
 
@@ -1077,7 +1076,7 @@  discard block
 block discarded – undo
1077 1076
 	if ($taches and count($taches) and !spip_connect()) {
1078 1077
 		return false;
1079 1078
 	}
1080
-	spip_log("cron !", 'jq' . _LOG_DEBUG);
1079
+	spip_log("cron !", 'jq'._LOG_DEBUG);
1081 1080
 	if ($genie = charger_fonction('genie', 'inc', true)) {
1082 1081
 		return $genie($taches);
1083 1082
 	}
@@ -1181,7 +1180,7 @@  discard block
 block discarded – undo
1181 1180
 
1182 1181
 	if ($queue_next_job_time == -1) {
1183 1182
 		if (!defined('_JQ_NEXT_JOB_TIME_FILENAME')) {
1184
-			define('_JQ_NEXT_JOB_TIME_FILENAME', _DIR_TMP . "job_queue_next.txt");
1183
+			define('_JQ_NEXT_JOB_TIME_FILENAME', _DIR_TMP."job_queue_next.txt");
1185 1184
 		}
1186 1185
 		// utiliser un cache memoire si dispo
1187 1186
 		if (function_exists("cache_get") and defined('_MEMOIZE_MEMORY') and _MEMOIZE_MEMORY) {
@@ -1248,8 +1247,8 @@  discard block
 block discarded – undo
1248 1247
 		$src = '';
1249 1248
 	}
1250 1249
 	if ($script) {
1251
-		$script = ("/*<![CDATA[*/\n" .
1252
-			preg_replace(',</([^>]*)>,', '<\/\1>', $script) .
1250
+		$script = ("/*<![CDATA[*/\n".
1251
+			preg_replace(',</([^>]*)>,', '<\/\1>', $script).
1253 1252
 			"/*]]>*/");
1254 1253
 	}
1255 1254
 	if ($noscript) {
@@ -1335,13 +1334,13 @@  discard block
 block discarded – undo
1335 1334
 	if ($path_base == null) {
1336 1335
 		// Chemin standard depuis l'espace public
1337 1336
 		$path = defined('_SPIP_PATH') ? _SPIP_PATH :
1338
-			_DIR_RACINE . ':' .
1339
-			_DIR_RACINE . 'squelettes-dist/:' .
1340
-			_DIR_RACINE . 'prive/:' .
1337
+			_DIR_RACINE.':'.
1338
+			_DIR_RACINE.'squelettes-dist/:'.
1339
+			_DIR_RACINE.'prive/:'.
1341 1340
 			_DIR_RESTREINT;
1342 1341
 		// Ajouter squelettes/
1343
-		if (@is_dir(_DIR_RACINE . 'squelettes')) {
1344
-			$path = _DIR_RACINE . 'squelettes/:' . $path;
1342
+		if (@is_dir(_DIR_RACINE.'squelettes')) {
1343
+			$path = _DIR_RACINE.'squelettes/:'.$path;
1345 1344
 		}
1346 1345
 		foreach (explode(':', $path) as $dir) {
1347 1346
 			if (strlen($dir) and substr($dir, -1) != '/') {
@@ -1353,7 +1352,7 @@  discard block
 block discarded – undo
1353 1352
 		// Et le(s) dossier(s) des squelettes nommes
1354 1353
 		if (strlen($GLOBALS['dossier_squelettes'])) {
1355 1354
 			foreach (array_reverse(explode(':', $GLOBALS['dossier_squelettes'])) as $d) {
1356
-				array_unshift($path_full, ($d[0] == '/' ? '' : _DIR_RACINE) . $d . '/');
1355
+				array_unshift($path_full, ($d[0] == '/' ? '' : _DIR_RACINE).$d.'/');
1357 1356
 			}
1358 1357
 		}
1359 1358
 		$GLOBALS['path_sig'] = md5(serialize($path_full));
@@ -1364,7 +1363,7 @@  discard block
 block discarded – undo
1364 1363
 
1365 1364
 	if (strlen($dir_path)) {
1366 1365
 		$tete = "";
1367
-		if (reset($path_base) == _DIR_RACINE . 'squelettes/') {
1366
+		if (reset($path_base) == _DIR_RACINE.'squelettes/') {
1368 1367
 			$tete = array_shift($path_base);
1369 1368
 		}
1370 1369
 		$dirs = array_reverse(explode(':', $dir_path));
@@ -1386,7 +1385,7 @@  discard block
 block discarded – undo
1386 1385
 	// Et le(s) dossier(s) des squelettes nommes
1387 1386
 	if (strlen($GLOBALS['dossier_squelettes'])) {
1388 1387
 		foreach (array_reverse(explode(':', $GLOBALS['dossier_squelettes'])) as $d) {
1389
-			array_unshift($path_full, ((isset($d[0]) and $d[0] == '/') ? '' : _DIR_RACINE) . $d . '/');
1388
+			array_unshift($path_full, ((isset($d[0]) and $d[0] == '/') ? '' : _DIR_RACINE).$d.'/');
1390 1389
 		}
1391 1390
 	}
1392 1391
 
@@ -1456,9 +1455,9 @@  discard block
 block discarded – undo
1456 1455
 	// on peut fournir une icone generique -xx.svg qui fera le job dans toutes les tailles, et qui est prioritaire sur le png
1457 1456
 	// si il y a un .svg a la bonne taille (-16.svg) a cote, on l'utilise en remplacement du -16.png
1458 1457
 	if (preg_match(',-(\d+)[.](png|gif|svg)$,', $file, $m)
1459
-	  and $file_svg_generique = substr($file,0, -strlen($m[0])) . "-xx.svg"
1458
+	  and $file_svg_generique = substr($file, 0, -strlen($m[0]))."-xx.svg"
1460 1459
 		and $f = find_in_theme("$file_svg_generique")) {
1461
-		if ($fsize = substr($f,0,-6) . $m[1] . ".svg" and file_exists($fsize)) {
1460
+		if ($fsize = substr($f, 0, -6).$m[1].".svg" and file_exists($fsize)) {
1462 1461
 			return $themefiles["$subdir$file"] = $fsize;
1463 1462
 		}
1464 1463
 		else {
@@ -1472,7 +1471,7 @@  discard block
 block discarded – undo
1472 1471
 			return $themefiles["$subdir$file"] = $f;
1473 1472
 		}
1474 1473
 	}
1475
-	spip_log("$file introuvable dans le theme prive " . reset($themes), 'theme');
1474
+	spip_log("$file introuvable dans le theme prive ".reset($themes), 'theme');
1476 1475
 
1477 1476
 	return $themefiles["$subdir$file"] = "";
1478 1477
 }
@@ -1500,7 +1499,7 @@  discard block
 block discarded – undo
1500 1499
 function chemin_image($icone) {
1501 1500
 	static $icone_renommer;
1502 1501
 	if ($p = strpos($icone, '?')) {
1503
-		$icone = substr($icone,0, $p);
1502
+		$icone = substr($icone, 0, $p);
1504 1503
 	}
1505 1504
 	// gerer le cas d'un double appel en evitant de refaire le travail inutilement
1506 1505
 	if (strpos($icone, "/") !== false and file_exists($icone)) {
@@ -1580,8 +1579,8 @@  discard block
 block discarded – undo
1580 1579
 			return false;
1581 1580
 		}
1582 1581
 		if ($include and !isset($inc[$dirname][$file])) {
1583
-			include_once _ROOT_CWD . $GLOBALS['path_files'][$GLOBALS['path_sig']][$dirname][$file];
1584
-			$inc[$dirname][$file] = $inc[''][$dirname . $file] = true;
1582
+			include_once _ROOT_CWD.$GLOBALS['path_files'][$GLOBALS['path_sig']][$dirname][$file];
1583
+			$inc[$dirname][$file] = $inc[''][$dirname.$file] = true;
1585 1584
 		}
1586 1585
 
1587 1586
 		return $GLOBALS['path_files'][$GLOBALS['path_sig']][$dirname][$file];
@@ -1594,14 +1593,14 @@  discard block
 block discarded – undo
1594 1593
 	}
1595 1594
 
1596 1595
 	foreach (creer_chemin() as $dir) {
1597
-		if (!isset($dirs[$a = $dir . $dirname])) {
1598
-			$dirs[$a] = (is_dir(_ROOT_CWD . $a) || !$a);
1596
+		if (!isset($dirs[$a = $dir.$dirname])) {
1597
+			$dirs[$a] = (is_dir(_ROOT_CWD.$a) || !$a);
1599 1598
 		}
1600 1599
 		if ($dirs[$a]) {
1601
-			if (file_exists(_ROOT_CWD . ($a .= $file))) {
1600
+			if (file_exists(_ROOT_CWD.($a .= $file))) {
1602 1601
 				if ($include and !isset($inc[$dirname][$file])) {
1603
-					include_once _ROOT_CWD . $a;
1604
-					$inc[$dirname][$file] = $inc[''][$dirname . $file] = true;
1602
+					include_once _ROOT_CWD.$a;
1603
+					$inc[$dirname][$file] = $inc[''][$dirname.$file] = true;
1605 1604
 				}
1606 1605
 				if (!defined('_SAUVER_CHEMIN')) {
1607 1606
 					// si le chemin n'a pas encore ete charge, ne pas lever le flag, ne pas cacher
@@ -1611,7 +1610,7 @@  discard block
 block discarded – undo
1611 1610
 					define('_SAUVER_CHEMIN', true);
1612 1611
 				}
1613 1612
 
1614
-				return $GLOBALS['path_files'][$GLOBALS['path_sig']][$dirname][$file] = $GLOBALS['path_files'][$GLOBALS['path_sig']][''][$dirname . $file] = $a;
1613
+				return $GLOBALS['path_files'][$GLOBALS['path_sig']][$dirname][$file] = $GLOBALS['path_files'][$GLOBALS['path_sig']][''][$dirname.$file] = $a;
1615 1614
 			}
1616 1615
 		}
1617 1616
 	}
@@ -1637,7 +1636,7 @@  discard block
 block discarded – undo
1637 1636
 		define('_SAUVER_CHEMIN', true);
1638 1637
 	}
1639 1638
 
1640
-	return $GLOBALS['path_files'][$GLOBALS['path_sig']][$dirname][$file] = $GLOBALS['path_files'][$GLOBALS['path_sig']][''][$dirname . $file] = false;
1639
+	return $GLOBALS['path_files'][$GLOBALS['path_sig']][$dirname][$file] = $GLOBALS['path_files'][$GLOBALS['path_sig']][''][$dirname.$file] = false;
1641 1640
 }
1642 1641
 
1643 1642
 function clear_path_cache() {
@@ -1706,12 +1705,12 @@  discard block
 block discarded – undo
1706 1705
 	// cas borderline si dans mes_options on appelle redirige_par_entete qui utilise _T et charge un fichier de langue
1707 1706
 	// on a pas encore inclus flock.php
1708 1707
 	if (!function_exists('preg_files')) {
1709
-		include_once _ROOT_RESTREINT . 'inc/flock.php';
1708
+		include_once _ROOT_RESTREINT.'inc/flock.php';
1710 1709
 	}
1711 1710
 
1712 1711
 	// Parcourir le chemin
1713 1712
 	foreach (creer_chemin() as $d) {
1714
-		$f = $d . $dir;
1713
+		$f = $d.$dir;
1715 1714
 		if (@is_dir($f)) {
1716 1715
 			$liste = preg_files($f, $pattern, $maxfiles - count($liste_fichiers), $recurs === true ? array() : $recurs);
1717 1716
 			foreach ($liste as $chemin) {
@@ -1741,9 +1740,9 @@  discard block
 block discarded – undo
1741 1740
 	static $autsanscookie = array('install', 'base_repair');
1742 1741
 
1743 1742
 	if (in_array($nom, $autsanscookie)) {
1744
-		if (test_espace_prive()){
1743
+		if (test_espace_prive()) {
1745 1744
 			include_spip('base/connect_sql');
1746
-			if (!$strict or !spip_connect()){
1745
+			if (!$strict or !spip_connect()) {
1747 1746
 				return true;
1748 1747
 			}
1749 1748
 		}
@@ -1822,7 +1821,7 @@  discard block
 block discarded – undo
1822 1821
 		return $res;
1823 1822
 	}
1824 1823
 	// Sinon c'est un raccourci ou compat SPIP < 2
1825
-	if (!function_exists($f = 'generer_url_' . $entite)) {
1824
+	if (!function_exists($f = 'generer_url_'.$entite)) {
1826 1825
 		if (!function_exists($f .= '_dist')) {
1827 1826
 			$f = '';
1828 1827
 		}
@@ -1831,8 +1830,8 @@  discard block
 block discarded – undo
1831 1830
 		$url = $f($id, $args, $ancre);
1832 1831
 		if (strlen($args)) {
1833 1832
 			$url .= strstr($url, '?')
1834
-				? '&amp;' . $args
1835
-				: '?' . $args;
1833
+				? '&amp;'.$args
1834
+				: '?'.$args;
1836 1835
 		}
1837 1836
 
1838 1837
 		return $url;
@@ -1863,8 +1862,8 @@  discard block
 block discarded – undo
1863 1862
 	include_spip('base/connect_sql');
1864 1863
 	$id_type = id_table_objet($entite, $public);
1865 1864
 
1866
-	return _DIR_RACINE . get_spip_script('./')
1867
-	. "?" . _SPIP_PAGE . "=$entite&$id_type=$i&connect=$public"
1865
+	return _DIR_RACINE.get_spip_script('./')
1866
+	. "?"._SPIP_PAGE."=$entite&$id_type=$i&connect=$public"
1868 1867
 	. (!$args ? '' : "&$args")
1869 1868
 	. (!$ancre ? '' : "#$ancre");
1870 1869
 }
@@ -2016,7 +2015,7 @@  discard block
 block discarded – undo
2016 2015
 			if (!empty($_SERVER['QUERY_STRING'])
2017 2016
 				and !strpos($_SERVER['REQUEST_URI'], '?')
2018 2017
 			) {
2019
-				$GLOBALS['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
2018
+				$GLOBALS['REQUEST_URI'] .= '?'.$_SERVER['QUERY_STRING'];
2020 2019
 			}
2021 2020
 		}
2022 2021
 	}
@@ -2043,17 +2042,17 @@  discard block
 block discarded – undo
2043 2042
 	list($myself) = explode('?', $myself);
2044 2043
 	// vieux mode HTTP qui envoie après le nom de la methode l'URL compléte
2045 2044
 	// protocole, "://", nom du serveur avant le path dans _SERVER["REQUEST_URI"]
2046
-	if (strpos($myself,'://') !== false) {
2047
-		$myself = explode('://',$myself);
2045
+	if (strpos($myself, '://') !== false) {
2046
+		$myself = explode('://', $myself);
2048 2047
 		array_shift($myself);
2049
-		$myself = implode('://',$myself);
2050
-		$myself = explode('/',$myself);
2048
+		$myself = implode('://', $myself);
2049
+		$myself = explode('/', $myself);
2051 2050
 		array_shift($myself);
2052
-		$myself = implode('/',$myself);
2051
+		$myself = implode('/', $myself);
2053 2052
 	}
2054
-	$url = join('/', array_slice(explode('/', $myself), 0, -1 - $prof)) . '/';
2053
+	$url = join('/', array_slice(explode('/', $myself), 0, -1 - $prof)).'/';
2055 2054
 
2056
-	$url = $http . '://' . rtrim($host, '/') . '/' . ltrim($url, '/');
2055
+	$url = $http.'://'.rtrim($host, '/').'/'.ltrim($url, '/');
2057 2056
 
2058 2057
 	return $url;
2059 2058
 }
@@ -2091,17 +2090,17 @@  discard block
 block discarded – undo
2091 2090
  **/
2092 2091
 function generer_url_ecrire($script = '', $args = "", $no_entities = false, $rel = false) {
2093 2092
 	if (!$rel) {
2094
-		$rel = url_de_base() . _DIR_RESTREINT_ABS . _SPIP_ECRIRE_SCRIPT;
2093
+		$rel = url_de_base()._DIR_RESTREINT_ABS._SPIP_ECRIRE_SCRIPT;
2095 2094
 	} else {
2096 2095
 		if (!is_string($rel)) {
2097 2096
 			$rel = _DIR_RESTREINT ? _DIR_RESTREINT :
2098
-				('./' . _SPIP_ECRIRE_SCRIPT);
2097
+				('./'._SPIP_ECRIRE_SCRIPT);
2099 2098
 		}
2100 2099
 	}
2101 2100
 
2102 2101
 	list($script, $ancre) = array_pad(explode('#', $script), 2, null);
2103 2102
 	if ($script and ($script <> 'accueil' or $rel)) {
2104
-		$args = "?exec=$script" . (!$args ? '' : "&$args");
2103
+		$args = "?exec=$script".(!$args ? '' : "&$args");
2105 2104
 	} elseif ($args) {
2106 2105
 		$args = "?$args";
2107 2106
 	}
@@ -2109,7 +2108,7 @@  discard block
 block discarded – undo
2109 2108
 		$args .= "#$ancre";
2110 2109
 	}
2111 2110
 
2112
-	return $rel . ($no_entities ? $args : str_replace('&', '&amp;', $args));
2111
+	return $rel.($no_entities ? $args : str_replace('&', '&amp;', $args));
2113 2112
 }
2114 2113
 
2115 2114
 //
@@ -2179,25 +2178,25 @@  discard block
 block discarded – undo
2179 2178
 		if (is_array($args)) {
2180 2179
 			$r = '';
2181 2180
 			foreach ($args as $k => $v) {
2182
-				$r .= '&' . $k . '=' . $v;
2181
+				$r .= '&'.$k.'='.$v;
2183 2182
 			}
2184 2183
 			$args = substr($r, 1);
2185 2184
 		}
2186 2185
 		$action .=
2187
-			(strpos($action, '?') !== false ? '&' : '?') . $args;
2186
+			(strpos($action, '?') !== false ? '&' : '?').$args;
2188 2187
 	}
2189 2188
 	if (!$no_entities) {
2190 2189
 		$action = quote_amp($action);
2191 2190
 	}
2192 2191
 
2193 2192
 	// ne pas generer une url avec /./?page= en cas d'url absolue et de _SPIP_SCRIPT vide
2194
-	return ($rel ? _DIR_RACINE . $action : rtrim(url_de_base(), '/') . preg_replace(",^/[.]/,", "/", "/$action"));
2193
+	return ($rel ? _DIR_RACINE . $action : rtrim(url_de_base(), '/').preg_replace(",^/[.]/,", "/", "/$action"));
2195 2194
 }
2196 2195
 
2197 2196
 // https://code.spip.net/@generer_url_prive
2198 2197
 function generer_url_prive($script, $args = "", $no_entities = false) {
2199 2198
 
2200
-	return generer_url_public($script, $args, $no_entities, false, _DIR_RESTREINT_ABS . 'prive.php');
2199
+	return generer_url_public($script, $args, $no_entities, false, _DIR_RESTREINT_ABS.'prive.php');
2201 2200
 }
2202 2201
 
2203 2202
 // Pour les formulaires en methode POST,
@@ -2232,8 +2231,7 @@  discard block
 block discarded – undo
2232 2231
 	. "><div>\n"
2233 2232
 	. "<input type='hidden' name='exec' value='$script1' />"
2234 2233
 	. $corps
2235
-	. (!$submit ? '' :
2236
-		("<div style='text-align: " . $GLOBALS['spip_lang_right'] . "'><input class='fondo' type='submit' value=\"" . entites_html($submit) . "\" /></div>"))
2234
+	. (!$submit ? '' : ("<div style='text-align: ".$GLOBALS['spip_lang_right']."'><input class='fondo' type='submit' value=\"".entites_html($submit)."\" /></div>"))
2237 2235
 	. "</div></form>\n";
2238 2236
 }
2239 2237
 
@@ -2258,14 +2256,14 @@  discard block
 block discarded – undo
2258 2256
 		? generer_url_ecrire(_request('exec'))
2259 2257
 		: generer_url_public();
2260 2258
 
2261
-	return "\n<form action='" .
2262
-	$h .
2263
-	"'" .
2264
-	$atts .
2265
-	">\n" .
2266
-	"<div>" .
2267
-	"\n<input type='hidden' name='action' value='$script' />" .
2268
-	$corps .
2259
+	return "\n<form action='".
2260
+	$h.
2261
+	"'".
2262
+	$atts.
2263
+	">\n".
2264
+	"<div>".
2265
+	"\n<input type='hidden' name='action' value='$script' />".
2266
+	$corps.
2269 2267
 	"</div></form>";
2270 2268
 }
2271 2269
 
@@ -2293,7 +2291,7 @@  discard block
 block discarded – undo
2293 2291
 		: generer_url_public('', '', false, false);
2294 2292
 	$url = parametre_url($url, 'action', $script);
2295 2293
 	if ($args) {
2296
-		$url .= quote_amp('&' . $args);
2294
+		$url .= quote_amp('&'.$args);
2297 2295
 	}
2298 2296
 
2299 2297
 	if ($no_entities) {
@@ -2343,17 +2341,17 @@  discard block
 block discarded – undo
2343 2341
 
2344 2342
 	// le nom du repertoire plugins/ activables/desactivables
2345 2343
 	if (!defined('_DIR_PLUGINS')) {
2346
-		define('_DIR_PLUGINS', _DIR_RACINE . "plugins/");
2344
+		define('_DIR_PLUGINS', _DIR_RACINE."plugins/");
2347 2345
 	}
2348 2346
 
2349 2347
 	// le nom du repertoire des extensions/ permanentes du core, toujours actives
2350 2348
 	if (!defined('_DIR_PLUGINS_DIST')) {
2351
-		define('_DIR_PLUGINS_DIST', _DIR_RACINE . "plugins-dist/");
2349
+		define('_DIR_PLUGINS_DIST', _DIR_RACINE."plugins-dist/");
2352 2350
 	}
2353 2351
 
2354 2352
 	// le nom du repertoire des librairies
2355 2353
 	if (!defined('_DIR_LIB')) {
2356
-		define('_DIR_LIB', _DIR_RACINE . "lib/");
2354
+		define('_DIR_LIB', _DIR_RACINE."lib/");
2357 2355
 	}
2358 2356
 
2359 2357
 	if (!defined('_DIR_IMG')) {
@@ -2363,29 +2361,29 @@  discard block
 block discarded – undo
2363 2361
 		define('_DIR_LOGOS', $pa);
2364 2362
 	}
2365 2363
 	if (!defined('_DIR_IMG_ICONES')) {
2366
-		define('_DIR_IMG_ICONES', _DIR_LOGOS . "icones/");
2364
+		define('_DIR_IMG_ICONES', _DIR_LOGOS."icones/");
2367 2365
 	}
2368 2366
 
2369 2367
 	if (!defined('_DIR_DUMP')) {
2370
-		define('_DIR_DUMP', $ti . "dump/");
2368
+		define('_DIR_DUMP', $ti."dump/");
2371 2369
 	}
2372 2370
 	if (!defined('_DIR_SESSIONS')) {
2373
-		define('_DIR_SESSIONS', $ti . "sessions/");
2371
+		define('_DIR_SESSIONS', $ti."sessions/");
2374 2372
 	}
2375 2373
 	if (!defined('_DIR_TRANSFERT')) {
2376
-		define('_DIR_TRANSFERT', $ti . "upload/");
2374
+		define('_DIR_TRANSFERT', $ti."upload/");
2377 2375
 	}
2378 2376
 	if (!defined('_DIR_CACHE')) {
2379
-		define('_DIR_CACHE', $ti . "cache/");
2377
+		define('_DIR_CACHE', $ti."cache/");
2380 2378
 	}
2381 2379
 	if (!defined('_DIR_CACHE_XML')) {
2382
-		define('_DIR_CACHE_XML', _DIR_CACHE . "xml/");
2380
+		define('_DIR_CACHE_XML', _DIR_CACHE."xml/");
2383 2381
 	}
2384 2382
 	if (!defined('_DIR_SKELS')) {
2385
-		define('_DIR_SKELS', _DIR_CACHE . "skel/");
2383
+		define('_DIR_SKELS', _DIR_CACHE."skel/");
2386 2384
 	}
2387 2385
 	if (!defined('_DIR_AIDE')) {
2388
-		define('_DIR_AIDE', _DIR_CACHE . "aide/");
2386
+		define('_DIR_AIDE', _DIR_CACHE."aide/");
2389 2387
 	}
2390 2388
 	if (!defined('_DIR_TMP')) {
2391 2389
 		define('_DIR_TMP', $ti);
@@ -2415,27 +2413,27 @@  discard block
 block discarded – undo
2415 2413
 	// Declaration des fichiers
2416 2414
 
2417 2415
 	if (!defined('_CACHE_PLUGINS_PATH')) {
2418
-		define('_CACHE_PLUGINS_PATH', _DIR_CACHE . "charger_plugins_chemins.php");
2416
+		define('_CACHE_PLUGINS_PATH', _DIR_CACHE."charger_plugins_chemins.php");
2419 2417
 	}
2420 2418
 	if (!defined('_CACHE_PLUGINS_OPT')) {
2421
-		define('_CACHE_PLUGINS_OPT', _DIR_CACHE . "charger_plugins_options.php");
2419
+		define('_CACHE_PLUGINS_OPT', _DIR_CACHE."charger_plugins_options.php");
2422 2420
 	}
2423 2421
 	if (!defined('_CACHE_PLUGINS_FCT')) {
2424
-		define('_CACHE_PLUGINS_FCT', _DIR_CACHE . "charger_plugins_fonctions.php");
2422
+		define('_CACHE_PLUGINS_FCT', _DIR_CACHE."charger_plugins_fonctions.php");
2425 2423
 	}
2426 2424
 	if (!defined('_CACHE_PIPELINES')) {
2427
-		define('_CACHE_PIPELINES', _DIR_CACHE . "charger_pipelines.php");
2425
+		define('_CACHE_PIPELINES', _DIR_CACHE."charger_pipelines.php");
2428 2426
 	}
2429 2427
 	if (!defined('_CACHE_CHEMIN')) {
2430
-		define('_CACHE_CHEMIN', _DIR_CACHE . "chemin.txt");
2428
+		define('_CACHE_CHEMIN', _DIR_CACHE."chemin.txt");
2431 2429
 	}
2432 2430
 
2433 2431
 	# attention .php obligatoire pour ecrire_fichier_securise
2434 2432
 	if (!defined('_FILE_META')) {
2435
-		define('_FILE_META', $ti . 'meta_cache.php');
2433
+		define('_FILE_META', $ti.'meta_cache.php');
2436 2434
 	}
2437 2435
 	if (!defined('_DIR_LOG')) {
2438
-		define('_DIR_LOG', _DIR_TMP . 'log/');
2436
+		define('_DIR_LOG', _DIR_TMP.'log/');
2439 2437
 	}
2440 2438
 	if (!defined('_FILE_LOG')) {
2441 2439
 		define('_FILE_LOG', 'spip');
@@ -2451,8 +2449,8 @@  discard block
 block discarded – undo
2451 2449
 	}
2452 2450
 	if (!defined('_FILE_CONNECT')) {
2453 2451
 		define('_FILE_CONNECT',
2454
-		(@is_readable($f = _DIR_CONNECT . _FILE_CONNECT_INS . '.php') ? $f
2455
-			: (@is_readable($f = _DIR_RESTREINT . 'inc_connect.php') ? $f
2452
+		(@is_readable($f = _DIR_CONNECT._FILE_CONNECT_INS.'.php') ? $f
2453
+			: (@is_readable($f = _DIR_RESTREINT.'inc_connect.php') ? $f
2456 2454
 				: false)));
2457 2455
 	}
2458 2456
 
@@ -2462,7 +2460,7 @@  discard block
 block discarded – undo
2462 2460
 	}
2463 2461
 	if (!defined('_FILE_CHMOD')) {
2464 2462
 		define('_FILE_CHMOD',
2465
-		(@is_readable($f = _DIR_CHMOD . _FILE_CHMOD_INS . '.php') ? $f
2463
+		(@is_readable($f = _DIR_CHMOD._FILE_CHMOD_INS.'.php') ? $f
2466 2464
 			: false));
2467 2465
 	}
2468 2466
 
@@ -2474,10 +2472,10 @@  discard block
 block discarded – undo
2474 2472
 		define('_FILE_TMP_SUFFIX', '.tmp.php');
2475 2473
 	}
2476 2474
 	if (!defined('_FILE_CONNECT_TMP')) {
2477
-		define('_FILE_CONNECT_TMP', _DIR_CONNECT . _FILE_CONNECT_INS . _FILE_TMP_SUFFIX);
2475
+		define('_FILE_CONNECT_TMP', _DIR_CONNECT._FILE_CONNECT_INS._FILE_TMP_SUFFIX);
2478 2476
 	}
2479 2477
 	if (!defined('_FILE_CHMOD_TMP')) {
2480
-		define('_FILE_CHMOD_TMP', _DIR_CHMOD . _FILE_CHMOD_INS . _FILE_TMP_SUFFIX);
2478
+		define('_FILE_CHMOD_TMP', _DIR_CHMOD._FILE_CHMOD_INS._FILE_TMP_SUFFIX);
2481 2479
 	}
2482 2480
 
2483 2481
 	// Definition des droits d'acces en ecriture
@@ -2495,13 +2493,13 @@  discard block
 block discarded – undo
2495 2493
 		define('_DEFAULT_CHARSET', 'utf-8');
2496 2494
 	}
2497 2495
 	if (!defined('_ROOT_PLUGINS')) {
2498
-		define('_ROOT_PLUGINS', _ROOT_RACINE . "plugins/");
2496
+		define('_ROOT_PLUGINS', _ROOT_RACINE."plugins/");
2499 2497
 	}
2500 2498
 	if (!defined('_ROOT_PLUGINS_DIST')) {
2501
-		define('_ROOT_PLUGINS_DIST', _ROOT_RACINE . "plugins-dist/");
2499
+		define('_ROOT_PLUGINS_DIST', _ROOT_RACINE."plugins-dist/");
2502 2500
 	}
2503 2501
 	if (!defined('_ROOT_PLUGINS_SUPPL') && defined('_DIR_PLUGINS_SUPPL') && _DIR_PLUGINS_SUPPL) {
2504
-		define('_ROOT_PLUGINS_SUPPL', _ROOT_RACINE . str_replace(_DIR_RACINE, '', _DIR_PLUGINS_SUPPL));
2502
+		define('_ROOT_PLUGINS_SUPPL', _ROOT_RACINE.str_replace(_DIR_RACINE, '', _DIR_PLUGINS_SUPPL));
2505 2503
 	}
2506 2504
 
2507 2505
 	// La taille des Log
@@ -2538,7 +2536,7 @@  discard block
 block discarded – undo
2538 2536
 	// (non surchargeable en l'etat ; attention si on utilise include_spip()
2539 2537
 	// pour le rendre surchargeable, on va provoquer un reecriture
2540 2538
 	// systematique du noyau ou une baisse de perfs => a etudier)
2541
-	include_once _ROOT_RESTREINT . 'inc/flock.php';
2539
+	include_once _ROOT_RESTREINT.'inc/flock.php';
2542 2540
 
2543 2541
 	// charger tout de suite le path et son cache
2544 2542
 	load_path_cache();
@@ -2585,7 +2583,7 @@  discard block
 block discarded – undo
2585 2583
 		if (!empty($_SERVER['QUERY_STRING'])
2586 2584
 			and !strpos($_SERVER['REQUEST_URI'], '?')
2587 2585
 		) {
2588
-			$GLOBALS['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
2586
+			$GLOBALS['REQUEST_URI'] .= '?'.$_SERVER['QUERY_STRING'];
2589 2587
 		}
2590 2588
 	}
2591 2589
 
@@ -2621,7 +2619,7 @@  discard block
 block discarded – undo
2621 2619
 
2622 2620
 			if (isset($GLOBALS['meta']['adresse_site'])) {
2623 2621
 				$uri_ref = parse_url($GLOBALS['meta']['adresse_site']);
2624
-				$uri_ref = (isset($uri_ref['path']) ? $uri_ref['path'] : '') . '/';
2622
+				$uri_ref = (isset($uri_ref['path']) ? $uri_ref['path'] : '').'/';
2625 2623
 			} else {
2626 2624
 				$uri_ref = "";
2627 2625
 			}
@@ -2709,7 +2707,7 @@  discard block
 block discarded – undo
2709 2707
 	}
2710 2708
 	if (!defined('_CACHE_RUBRIQUES')) {
2711 2709
 		/** Fichier cache pour le navigateur de rubrique du bandeau */
2712
-		define('_CACHE_RUBRIQUES', _DIR_TMP . 'menu-rubriques-cache.txt');
2710
+		define('_CACHE_RUBRIQUES', _DIR_TMP.'menu-rubriques-cache.txt');
2713 2711
 	}
2714 2712
 	if (!defined('_CACHE_RUBRIQUES_MAX')) {
2715 2713
 		/** Nombre maxi de rubriques enfants affichées pour chaque rubrique du navigateur de rubrique du bandeau */
@@ -2801,7 +2799,7 @@  discard block
 block discarded – undo
2801 2799
 					$memory *= 1024;
2802 2800
 			}
2803 2801
 			if ($memory < _MEMORY_LIMIT_MIN * 1024 * 1024) {
2804
-				@ini_set('memory_limit', $m = _MEMORY_LIMIT_MIN . 'M');
2802
+				@ini_set('memory_limit', $m = _MEMORY_LIMIT_MIN.'M');
2805 2803
 				if (trim(ini_get('memory_limit')) != $m) {
2806 2804
 					if (!defined('_INTERDIRE_COMPACTE_HEAD_ECRIRE')) {
2807 2805
 						define('_INTERDIRE_COMPACTE_HEAD_ECRIRE', true);
@@ -2951,7 +2949,7 @@  discard block
 block discarded – undo
2951 2949
 					}
2952 2950
 					if (isset($GLOBALS['visiteur_session']['nom'])) {
2953 2951
 						spip_log($GLOBALS['visiteur_session']['nom']
2954
-							. " " . _VAR_MODE);
2952
+							. " "._VAR_MODE);
2955 2953
 					}
2956 2954
 				} // pas autorise ?
2957 2955
 				else {
@@ -2959,7 +2957,7 @@  discard block
 block discarded – undo
2959 2957
 					if (!$GLOBALS['visiteur_session']) {
2960 2958
 						include_spip('inc/headers');
2961 2959
 						$redirect = parametre_url(self('&', true), 'var_mode', $_GET['var_mode'], '&');
2962
-						redirige_par_entete(generer_url_public('login','url=' . rawurlencode($redirect), true));
2960
+						redirige_par_entete(generer_url_public('login', 'url='.rawurlencode($redirect), true));
2963 2961
 					}
2964 2962
 					// sinon tant pis
2965 2963
 				}
@@ -3002,10 +3000,10 @@  discard block
 block discarded – undo
3002 3000
 	// mais on risque de perturber des plugins en initialisant trop tot
3003 3001
 	// certaines constantes
3004 3002
 	@spip_initialisation_core(
3005
-		(_DIR_RACINE . _NOM_PERMANENTS_INACCESSIBLES),
3006
-		(_DIR_RACINE . _NOM_PERMANENTS_ACCESSIBLES),
3007
-		(_DIR_RACINE . _NOM_TEMPORAIRES_INACCESSIBLES),
3008
-		(_DIR_RACINE . _NOM_TEMPORAIRES_ACCESSIBLES)
3003
+		(_DIR_RACINE._NOM_PERMANENTS_INACCESSIBLES),
3004
+		(_DIR_RACINE._NOM_PERMANENTS_ACCESSIBLES),
3005
+		(_DIR_RACINE._NOM_TEMPORAIRES_INACCESSIBLES),
3006
+		(_DIR_RACINE._NOM_TEMPORAIRES_ACCESSIBLES)
3009 3007
 	);
3010 3008
 
3011 3009
 	// Demarrer une session NON AUTHENTIFIEE si on donne son nom
@@ -3038,7 +3036,7 @@  discard block
 block discarded – undo
3038 3036
 	}
3039 3037
 
3040 3038
 	$h = (isset($_SERVER['PHP_AUTH_USER']) and !$GLOBALS['ignore_auth_http']);
3041
-	if ($h or isset($_COOKIE['spip_session']) or isset($_COOKIE[$GLOBALS['cookie_prefix'] . '_session'])) {
3039
+	if ($h or isset($_COOKIE['spip_session']) or isset($_COOKIE[$GLOBALS['cookie_prefix'].'_session'])) {
3042 3040
 
3043 3041
 		$session = charger_fonction('session', 'inc');
3044 3042
 		if ($session()) {
@@ -3118,7 +3116,7 @@  discard block
 block discarded – undo
3118 3116
 		$s = pipeline('definir_session',
3119 3117
 			$GLOBALS['visiteur_session']
3120 3118
 				? serialize($GLOBALS['visiteur_session'])
3121
-				. '_' . @$_COOKIE['spip_session']
3119
+				. '_'.@$_COOKIE['spip_session']
3122 3120
 				: ''
3123 3121
 		);
3124 3122
 		$session = $s ? substr(md5($s), 0, 8) : '';
@@ -3274,12 +3272,12 @@  discard block
 block discarded – undo
3274 3272
 	$GLOBALS['_INC_PUBLIC']++;
3275 3273
 
3276 3274
 	// fix #4235
3277
-	$cache_utilise_session_appelant	= (isset($GLOBALS['cache_utilise_session']) ? $GLOBALS['cache_utilise_session'] : null);
3275
+	$cache_utilise_session_appelant = (isset($GLOBALS['cache_utilise_session']) ? $GLOBALS['cache_utilise_session'] : null);
3278 3276
 
3279 3277
 
3280 3278
 	foreach (is_array($fond) ? $fond : array($fond) as $f) {
3281 3279
 		
3282
-		unset($GLOBALS['cache_utilise_session']);	// fix #4235
3280
+		unset($GLOBALS['cache_utilise_session']); // fix #4235
3283 3281
 
3284 3282
 		$page = evaluer_fond($f, $contexte, $connect);
3285 3283
 		if ($page === '') {
@@ -3318,7 +3316,7 @@  discard block
 block discarded – undo
3318 3316
 		}
3319 3317
 		
3320 3318
 		// contamination de la session appelante, pour les inclusions statiques
3321
-		if (isset($page['invalideurs']['session'])){
3319
+		if (isset($page['invalideurs']['session'])) {
3322 3320
 			$cache_utilise_session_appelant = $page['invalideurs']['session'];
3323 3321
 		}
3324 3322
 	}
@@ -3364,7 +3362,7 @@  discard block
 block discarded – undo
3364 3362
  * @return array|string
3365 3363
  */
3366 3364
 function trouver_fond($nom, $dir = '', $pathinfo = false) {
3367
-	$f = find_in_path($nom . '.' . _EXTENSION_SQUELETTES, $dir ? rtrim($dir, '/') . '/' : '');
3365
+	$f = find_in_path($nom.'.'._EXTENSION_SQUELETTES, $dir ? rtrim($dir, '/').'/' : '');
3368 3366
 	if (!$pathinfo) {
3369 3367
 		return $f;
3370 3368
 	}
@@ -3598,7 +3596,7 @@  discard block
 block discarded – undo
3598 3596
 
3599 3597
 			if (!is_array($params[0])) {
3600 3598
 				trigger_error(
3601
-					'array_column() expects parameter 1 to be array, ' . gettype($params[0]) . ' given',
3599
+					'array_column() expects parameter 1 to be array, '.gettype($params[0]).' given',
3602 3600
 					E_USER_WARNING
3603 3601
 				);
3604 3602
 				return null;
Please login to merge, or discard this patch.