Completed
Push — master ( c76770...babdec )
by cam
01:26
created
ecrire/action/supprimer_rubrique.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 	return;
21 21
 }
22 22
 
23
-include_spip('inc/charsets');  # pour le nom de fichier
23
+include_spip('inc/charsets'); # pour le nom de fichier
24 24
 
25 25
 /**
26 26
  * Effacer une rubrique
@@ -36,19 +36,19 @@  discard block
 block discarded – undo
36 36
 	}
37 37
 
38 38
 	if (intval($id_rubrique)) {
39
-		sql_delete('spip_rubriques', 'id_rubrique=' . intval($id_rubrique));
39
+		sql_delete('spip_rubriques', 'id_rubrique='.intval($id_rubrique));
40 40
 		// Les admin restreints qui n'administraient que cette rubrique
41 41
 		// deviennent redacteurs
42 42
 		// (il y a sans doute moyen de faire ca avec un having)
43 43
 
44
-		$q = sql_select('id_auteur', 'spip_auteurs_liens', "objet='rubrique' AND id_objet=" . intval($id_rubrique));
44
+		$q = sql_select('id_auteur', 'spip_auteurs_liens', "objet='rubrique' AND id_objet=".intval($id_rubrique));
45 45
 		while ($r = sql_fetch($q)) {
46 46
 			$id_auteur = $r['id_auteur'];
47 47
 			// degrader avant de supprimer la restriction d'admin
48 48
 			// section critique sur les droits
49 49
 			$n = sql_countsel(
50 50
 				'spip_auteurs_liens',
51
-				"objet='rubrique' AND id_objet!=" . intval($id_rubrique) . ' AND id_auteur=' . intval($id_auteur)
51
+				"objet='rubrique' AND id_objet!=".intval($id_rubrique).' AND id_auteur='.intval($id_auteur)
52 52
 			);
53 53
 			if (!$n) {
54 54
 				include_spip('action/editer_auteur');
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 			}
57 57
 			sql_delete(
58 58
 				'spip_auteurs_liens',
59
-				"objet='rubrique' AND id_objet=" . intval($id_rubrique) . ' AND id_auteur=' . intval($id_auteur)
59
+				"objet='rubrique' AND id_objet=".intval($id_rubrique).' AND id_auteur='.intval($id_auteur)
60 60
 			);
61 61
 		}
62 62
 		// menu_rubriques devra recalculer
Please login to merge, or discard this patch.
ecrire/plugins/installer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	}
69 69
 	$dir = constant($dir);
70 70
 	foreach ($infos['install'] as $file) {
71
-		$file = $dir . $plug . '/' . trim($file);
71
+		$file = $dir.$plug.'/'.trim($file);
72 72
 		if (file_exists($file)) {
73 73
 			include_once($file);
74 74
 		}
@@ -81,10 +81,10 @@  discard block
 block discarded – undo
81 81
 		// S'assurer que les metas de la table spécifique sont bien accessibles dans la globale
82 82
 		lire_metas($table);
83 83
 	}
84
-	$nom_meta = $infos['prefix'] . '_base_version';
84
+	$nom_meta = $infos['prefix'].'_base_version';
85 85
 
86 86
 	// Détermination de la fonction à appeler et de ses arguments
87
-	$f = $infos['prefix'] . '_install';
87
+	$f = $infos['prefix'].'_install';
88 88
 	if (!function_exists($f)) {
89 89
 		$f = isset($infos['schema']) ? 'spip_plugin_install' : '';
90 90
 		$arg = $infos;
@@ -168,12 +168,12 @@  discard block
 block discarded – undo
168 168
 				and spip_version_compare($GLOBALS[$table][$nom_meta], $version_cible, '>='));
169 169
 			break;
170 170
 		case 'install':
171
-			if (function_exists($upgrade = $infos['prefix'] . '_upgrade')) {
171
+			if (function_exists($upgrade = $infos['prefix'].'_upgrade')) {
172 172
 				$upgrade($nom_meta, $version_cible, $table);
173 173
 			}
174 174
 			break;
175 175
 		case 'uninstall':
176
-			if (function_exists($vider_tables = $infos['prefix'] . '_vider_tables')) {
176
+			if (function_exists($vider_tables = $infos['prefix'].'_vider_tables')) {
177 177
 				$vider_tables($nom_meta, $table);
178 178
 			}
179 179
 			break;
Please login to merge, or discard this patch.
ecrire/plugins/verifie_conformite.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 		}
49 49
 	}
50 50
 	if (is_null($p)) {
51
-		$arbre = ['erreur' => [_T('erreur_plugin_tag_plugin_absent') . " : $plug"]];
51
+		$arbre = ['erreur' => [_T('erreur_plugin_tag_plugin_absent')." : $plug"]];
52 52
 		$silence = true;
53 53
 	} else {
54 54
 		$arbre = $p;
@@ -83,15 +83,15 @@  discard block
 block discarded – undo
83 83
 		if (isset($arbre['etat'])) {
84 84
 			$etat = trim(end($arbre['etat']));
85 85
 			if (!in_array($etat, $etats)) {
86
-				$arbre['erreur'][] = _T('erreur_plugin_etat_inconnu') . " : '$etat'";
86
+				$arbre['erreur'][] = _T('erreur_plugin_etat_inconnu')." : '$etat'";
87 87
 			}
88 88
 		}
89 89
 		if (isset($arbre['options'])) {
90 90
 			foreach ($arbre['options'] as $optfile) {
91 91
 				$optfile = trim($optfile);
92
-				if (!@is_readable($dir_plugins . "$plug/$optfile")) {
92
+				if (!@is_readable($dir_plugins."$plug/$optfile")) {
93 93
 					if (!$silence) {
94
-						$arbre['erreur'][] = _T('erreur_plugin_fichier_absent') . " : $optfile";
94
+						$arbre['erreur'][] = _T('erreur_plugin_fichier_absent')." : $optfile";
95 95
 					}
96 96
 				}
97 97
 			}
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
99 99
 		if (isset($arbre['fonctions'])) {
100 100
 			foreach ($arbre['fonctions'] as $optfile) {
101 101
 				$optfile = trim($optfile);
102
-				if (!@is_readable($dir_plugins . "$plug/$optfile")) {
102
+				if (!@is_readable($dir_plugins."$plug/$optfile")) {
103 103
 					if (!$silence) {
104
-						$arbre['erreur'][] = _T('erreur_plugin_fichier_absent') . " : $optfile";
104
+						$arbre['erreur'][] = _T('erreur_plugin_fichier_absent')." : $optfile";
105 105
 					}
106 106
 				}
107 107
 			}
@@ -135,14 +135,14 @@  discard block
 block discarded – undo
135 135
 			// verif que la methode a un nom autorise
136 136
 			if (in_array(strtolower($action), $liste_methodes_reservees)) {
137 137
 				if (!$silence) {
138
-					$arbre['erreur'][] = _T('erreur_plugin_nom_fonction_interdit') . " : $action";
138
+					$arbre['erreur'][] = _T('erreur_plugin_nom_fonction_interdit')." : $action";
139 139
 				}
140 140
 			}
141 141
 			if (isset($pipe['inclure'])) {
142
-				$inclure = $dir_plugins . "$plug/" . $pipe['inclure'];
142
+				$inclure = $dir_plugins."$plug/".$pipe['inclure'];
143 143
 				if (!@is_readable($inclure)) {
144 144
 					if (!$silence) {
145
-						$arbre['erreur'][] = _T('erreur_plugin_fichier_absent') . " : $inclure";
145
+						$arbre['erreur'][] = _T('erreur_plugin_fichier_absent')." : $inclure";
146 146
 					}
147 147
 				}
148 148
 			}
@@ -212,9 +212,9 @@  discard block
 block discarded – undo
212 212
 			foreach ($arbre['noisette'] as $k => $nut) {
213 213
 				$nut = preg_replace(',[.]html$,uims', '', trim($nut));
214 214
 				$arbre['noisette'][$k] = $nut;
215
-				if (!@is_readable($dir_plugins . "$plug/$nut.html")) {
215
+				if (!@is_readable($dir_plugins."$plug/$nut.html")) {
216 216
 					if (!$silence) {
217
-						$arbre['erreur'][] = _T('erreur_plugin_fichier_absent') . " : $nut";
217
+						$arbre['erreur'][] = _T('erreur_plugin_fichier_absent')." : $nut";
218 218
 					}
219 219
 				}
220 220
 			}
Please login to merge, or discard this patch.
ecrire/plugins/afficher_repertoires.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
 				$id = substr(md5($plug), 0, 16);
61 61
 				$res .= $ligne_plug(
62 62
 					$url_page,
63
-					str_replace(_DIR_PLUGINS, '', _DIR_RACINE . $plug),
63
+					str_replace(_DIR_PLUGINS, '', _DIR_RACINE.$plug),
64 64
 					$actif,
65 65
 					'menu-entree'
66
-				) . "\n";
66
+				)."\n";
67 67
 				unset($liste_plugins[$key]);
68 68
 			}
69 69
 		}
@@ -105,12 +105,12 @@  discard block
 block discarded – undo
105 105
 	}
106 106
 	$chemin = '';
107 107
 	if (count($tcom)) {
108
-		$chemin .= implode('/', $tcom) . '/';
108
+		$chemin .= implode('/', $tcom).'/';
109 109
 	}
110 110
 	// ouvrir les repertoires jusqu'a la cible
111 111
 	while ($open = array_shift($ttarg)) {
112
-		$visible = @isset($deplie[$chemin . $open]);
113
-		$chemin .= $open . '/';
112
+		$visible = @isset($deplie[$chemin.$open]);
113
+		$chemin .= $open.'/';
114 114
 		$output .= '<li>';
115 115
 		$output .= bouton_block_depliable($chemin, $visible);
116 116
 		$output .= debut_block_depliable($visible);
Please login to merge, or discard this patch.
ecrire/plugins/infos_paquet.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
  * @return array
26 26
  */
27 27
 function plugins_infos_paquet($desc, $plug = '', $dir_plugins = _DIR_PLUGINS) {
28
-	static $process = [ // tableau constant
28
+	static $process = [// tableau constant
29 29
 		'debut' => 'paquet_debutElement',
30 30
 		'fin' => 'paquet_finElement',
31 31
 		'text' => 'paquet_textElement'
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
 			unset($tree['']);
48 48
 		}
49 49
 
50
-		$tree['slogan'] = $tree['prefix'] . '_slogan';
51
-		$tree['description'] = $tree['prefix'] . '_description';
50
+		$tree['slogan'] = $tree['prefix'].'_slogan';
51
+		$tree['description'] = $tree['prefix'].'_description';
52 52
 		paquet_readable_files($tree, "$dir_plugins$plug/");
53 53
 		if (!$tree['chemin']) {
54 54
 			$tree['chemin'] = [];
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	// Prendre les messages d'erreur sans les numeros de lignes
81 81
 	$msg = array_column($vxml->err, 0);
82 82
 	$t = _T('plugins_erreur', ['plugins' => $plug]);
83
-	array_unshift($msg, $t . " <ul class='erreur_xml'><li>" . reset($msg) . '</li></ul>');
83
+	array_unshift($msg, $t." <ul class='erreur_xml'><li>".reset($msg).'</li></ul>');
84 84
 
85 85
 	return ['erreur' => $msg];
86 86
 }
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
 function paquet_readable_files(&$tree, $dir) {
97 97
 	$prefix = strtolower($tree['prefix']);
98 98
 
99
-	$tree['options'] = (is_readable($dir . $f = ($prefix . '_options.php'))) ? [$f] : [];
100
-	$tree['fonctions'] = (is_readable($dir . $f = ($prefix . '_fonctions.php'))) ? [$f] : [];
101
-	$tree['install'] = (is_readable($dir . $f = ($prefix . '_administrations.php'))) ? [$f] : [];
99
+	$tree['options'] = (is_readable($dir.$f = ($prefix.'_options.php'))) ? [$f] : [];
100
+	$tree['fonctions'] = (is_readable($dir.$f = ($prefix.'_fonctions.php'))) ? [$f] : [];
101
+	$tree['install'] = (is_readable($dir.$f = ($prefix.'_administrations.php'))) ? [$f] : [];
102 102
 }
103 103
 
104 104
 /**
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 	$texte = trim($phraseur->versions[$n]['']);
187 187
 	$phraseur->versions[$n][''] = '';
188 188
 
189
-	$f = 'info_paquet_' . $name;
189
+	$f = 'info_paquet_'.$name;
190 190
 	if (function_exists($f)) {
191 191
 		$f($phraseur, $attrs, $texte);
192 192
 	} elseif (!$attrs) {
Please login to merge, or discard this patch.
ecrire/plugins/afficher_nom_plugin.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
 	// numerotons les occurences d'un meme prefix
40 40
 	$versions[$info['prefix']] = isset($versions[$info['prefix']]) ? $versions[$info['prefix']] + 1 : '';
41
-	$id = $info['prefix'] . $versions[$info['prefix']];
41
+	$id = $info['prefix'].$versions[$info['prefix']];
42 42
 
43 43
 	$class = $class_li;
44 44
 	$class .= $actif ? ' actif' : '';
@@ -55,15 +55,15 @@  discard block
 block discarded – undo
55 55
 	$prefix = $info['prefix'];
56 56
 	$dir = "$dir_plugins$plug_file/lang/$prefix";
57 57
 	$desc = plugin_propre($info['description'], $dir);
58
-	$url_stat = parametre_url($url_page, 'plugin', $dir_plugins . $plug_file);
58
+	$url_stat = parametre_url($url_page, 'plugin', $dir_plugins.$plug_file);
59 59
 
60
-	$s .= "<strong class='nom'>" . typo($info['nom']) . '</strong>';
61
-	$s .= " <span class='version'>" . $info['version'] . '</span>';
62
-	$s .= " <span class='etat'> - " . plugin_etat_en_clair($info['etat']) . '</span>';
60
+	$s .= "<strong class='nom'>".typo($info['nom']).'</strong>';
61
+	$s .= " <span class='version'>".$info['version'].'</span>';
62
+	$s .= " <span class='etat'> - ".plugin_etat_en_clair($info['etat']).'</span>';
63 63
 	$s .= '</div>';
64 64
 
65 65
 	if ($erreur) {
66
-		$s .= "<div class='erreur'>" . join('<br >', $info['erreur']) . '</div>';
66
+		$s .= "<div class='erreur'>".join('<br >', $info['erreur']).'</div>';
67 67
 	}
68 68
 
69 69
 	$s .= '</li>';
Please login to merge, or discard this patch.
ecrire/plugins/get_infos.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	static $filecache = '';
38 38
 
39 39
 	if ($cache === '') {
40
-		$filecache = _DIR_TMP . 'plugin_xml_cache.gz';
40
+		$filecache = _DIR_TMP.'plugin_xml_cache.gz';
41 41
 		if (is_file($filecache)) {
42 42
 			lire_fichier($filecache, $contenu);
43 43
 			$cache = unserialize($contenu);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 	if (isset($ret['prefix']) and $ret['prefix'] == 'spip') {
129 129
 		$ret['procure']['php'] = ['nom' => 'php', 'version' => phpversion()];
130 130
 		foreach (get_loaded_extensions() as $ext) {
131
-			$ret['procure']['php:' . $ext] = ['nom' => 'php:' . $ext, 'version' => phpversion($ext)];
131
+			$ret['procure']['php:'.$ext] = ['nom' => 'php:'.$ext, 'version' => phpversion($ext)];
132 132
 		}
133 133
 	}
134 134
 	$diff = ($ret != $pcache);
Please login to merge, or discard this patch.
ecrire/inc/headers.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -79,20 +79,20 @@  discard block
 block discarded – undo
79 79
 		(!$equiv and !spip_cookie_envoye()) or (
80 80
 			   (!empty($_SERVER['SERVER_SOFTWARE'])
81 81
 				   and _SERVEUR_SOFTWARE_ACCEPTE_LOCATION_APRES_COOKIE
82
-				   and preg_match('/' . _SERVEUR_SOFTWARE_ACCEPTE_LOCATION_APRES_COOKIE . '/i', $_SERVER['SERVER_SOFTWARE']))
82
+				   and preg_match('/'._SERVEUR_SOFTWARE_ACCEPTE_LOCATION_APRES_COOKIE.'/i', $_SERVER['SERVER_SOFTWARE']))
83 83
 			or (!empty($_SERVER['SERVER_SIGNATURE'])
84 84
 				   and _SERVEUR_SIGNATURE_ACCEPTE_LOCATION_APRES_COOKIE
85
-				   and preg_match('/' . _SERVEUR_SIGNATURE_ACCEPTE_LOCATION_APRES_COOKIE . '/i', $_SERVER['SERVER_SIGNATURE']))
85
+				   and preg_match('/'._SERVEUR_SIGNATURE_ACCEPTE_LOCATION_APRES_COOKIE.'/i', $_SERVER['SERVER_SIGNATURE']))
86 86
 			or function_exists('apache_getenv')
87 87
 			or defined('_SERVER_APACHE')
88 88
 		)
89 89
 	) {
90
-		@header('Location: ' . $url);
90
+		@header('Location: '.$url);
91 91
 		$equiv = '';
92 92
 	} else {
93
-		@header('Refresh: 0; url=' . $url);
93
+		@header('Refresh: 0; url='.$url);
94 94
 		if (isset($GLOBALS['meta']['charset'])) {
95
-			@header('Content-Type: text/html; charset=' . $GLOBALS['meta']['charset']);
95
+			@header('Content-Type: text/html; charset='.$GLOBALS['meta']['charset']);
96 96
 		}
97 97
 		$equiv = "<meta http-equiv='Refresh' content='0; url=$url'>";
98 98
 	}
@@ -104,11 +104,11 @@  discard block
 block discarded – undo
104 104
 	html_lang_attributes(), '
105 105
 <head>',
106 106
 	$equiv, '
107
-<title>HTTP ' . $status . '</title>
108
-' . ((isset($GLOBALS['meta']['charset'])) ? '<meta http-equiv="Content-Type" content="text/html;charset=' . $GLOBALS['meta']['charset'] . '">' : '') . '
107
+<title>HTTP ' . $status.'</title>
108
+' . ((isset($GLOBALS['meta']['charset'])) ? '<meta http-equiv="Content-Type" content="text/html;charset='.$GLOBALS['meta']['charset'].'">' : '').'
109 109
 </head>
110 110
 <body>
111
-<h1>HTTP ' . $status . '</h1>
111
+<h1>HTTP ' . $status.'</h1>
112 112
 <a href="',
113 113
 	quote_amp($url),
114 114
 	'">',
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 		# en theorie on devrait faire ca tout le temps, mais quand la chaine
145 145
 		# commence par ? c'est imperatif, sinon l'url finale n'est pas la bonne
146 146
 		if ($url[0] == '?') {
147
-			$url = url_de_base() . $url;
147
+			$url = url_de_base().$url;
148 148
 		}
149 149
 		$url = str_replace('&amp;', '&', $url);
150 150
 		spip_log("redirige formulaire ajax: $url");
@@ -152,9 +152,9 @@  discard block
 block discarded – undo
152 152
 		if ($format == 'ajaxform') {
153 153
 			return [
154 154
 				// on renvoie un lien masque qui sera traite par ajaxCallback.js
155
-				'<a href="' . quote_amp($url) . '" name="ajax_redirect"  style="display:none;">' . _T('navigateur_pas_redirige') . '</a>',
155
+				'<a href="'.quote_amp($url).'" name="ajax_redirect"  style="display:none;">'._T('navigateur_pas_redirige').'</a>',
156 156
 				// et un message au cas ou
157
-				'<br /><a href="' . quote_amp($url) . '">' . _T('navigateur_pas_redirige') . '</a>'
157
+				'<br /><a href="'.quote_amp($url).'">'._T('navigateur_pas_redirige').'</a>'
158 158
 			];
159 159
 		} else // format message texte, tout en js inline
160 160
 		{
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 				"<script type='text/javascript'>if (parent.window){parent.window.document.location.replace(\"$url\");} else {document.location.replace(\"$url\");}</script>"
164 164
 				. http_img_pack('loader.svg', '', " class='loader'")
165 165
 				. '<br />'
166
-				. '<a href="' . quote_amp($url) . '">' . _T('navigateur_pas_redirige') . '</a>';
166
+				. '<a href="'.quote_amp($url).'">'._T('navigateur_pas_redirige').'</a>';
167 167
 		}
168 168
 	}
169 169
 }
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 
223 223
 	header("Content-Type: text/html; charset=$charset");
224 224
 	header('Expires: 0');
225
-	header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
225
+	header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
226 226
 	header('Cache-Control: no-cache, must-revalidate');
227 227
 	header('Pragma: no-cache');
228 228
 }
Please login to merge, or discard this patch.
ecrire/public/cacher.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 function generer_nom_fichier_cache($contexte, $page) {
30 30
 	$u = md5(var_export([$contexte, $page], true));
31 31
 
32
-	return $u . '.cache';
32
+	return $u.'.cache';
33 33
 }
34 34
 
35 35
 /**
@@ -61,10 +61,10 @@  discard block
 block discarded – undo
61 61
 	}
62 62
 	else {
63 63
 		// en lecture on essaye pas de creer les repertoires, on va au plus vite
64
-		$rep = _DIR_CACHE . "calcul/$d/";
64
+		$rep = _DIR_CACHE."calcul/$d/";
65 65
 	}
66 66
 
67
-	return $rep . $u . '.cache';
67
+	return $rep.$u.'.cache';
68 68
 }
69 69
 
70 70
 /**
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 		);
116 116
 	}
117 117
 
118
-	return crc32($GLOBALS['meta']['cache_signature'] . $page['texte']);
118
+	return crc32($GLOBALS['meta']['cache_signature'].$page['texte']);
119 119
 }
120 120
 
121 121
 /**
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
 		// "cache sessionne" ; sa date indique la date de validite
272 272
 		// des caches sessionnes
273 273
 		if (!$tmp = lire_cache($chemin_cache)) {
274
-			spip_log('Creation cache sessionne ' . $chemin_cache);
274
+			spip_log('Creation cache sessionne '.$chemin_cache);
275 275
 			$tmp = [
276 276
 				'invalideurs' => ['session' => ''],
277 277
 				'lastmodified' => $_SERVER['REQUEST_TIME']
@@ -297,8 +297,8 @@  discard block
 block discarded – undo
297 297
 	// l'enregistrer, compresse ou non...
298 298
 	$ok = ecrire_cache($chemin_cache, $pagez);
299 299
 
300
-	spip_log((_IS_BOT ? 'Bot:' : '') . "Creation du cache $chemin_cache pour "
301
-		. $page['entetes']['X-Spip-Cache'] . ' secondes' . ($ok ? '' : ' (erreur!)'), _LOG_INFO);
300
+	spip_log((_IS_BOT ? 'Bot:' : '')."Creation du cache $chemin_cache pour "
301
+		. $page['entetes']['X-Spip-Cache'].' secondes'.($ok ? '' : ' (erreur!)'), _LOG_INFO);
302 302
 
303 303
 	// Inserer ses invalideurs
304 304
 	include_spip('inc/invalideur');
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
 function nettoyer_petit_cache($prefix, $duree = 300) {
320 320
 	// determiner le repertoire a purger : 'tmp/CACHE/rech/'
321 321
 	$dircache = sous_repertoire(_DIR_CACHE, $prefix);
322
-	if (spip_touch($dircache . 'purger_' . $prefix, $duree, true)) {
322
+	if (spip_touch($dircache.'purger_'.$prefix, $duree, true)) {
323 323
 		foreach (preg_files($dircache, '[.]txt$') as $f) {
324 324
 			if ($_SERVER['REQUEST_TIME'] - (@file_exists($f) ? @filemtime($f) : 0) > $duree) {
325 325
 				spip_unlink($f);
@@ -414,9 +414,9 @@  discard block
 block discarded – undo
414 414
 		if (spip_connect()) {
415 415
 			include_spip('inc/invalideur');
416 416
 			retire_caches($chemin_cache); # API invalideur inutile
417
-			supprimer_fichier(_DIR_CACHE . $chemin_cache);
417
+			supprimer_fichier(_DIR_CACHE.$chemin_cache);
418 418
 			if (isset($chemin_cache_session) and $chemin_cache_session) {
419
-				supprimer_fichier(_DIR_CACHE . $chemin_cache_session);
419
+				supprimer_fichier(_DIR_CACHE.$chemin_cache_session);
420 420
 			}
421 421
 		}
422 422
 	}
@@ -433,9 +433,9 @@  discard block
 block discarded – undo
433 433
 		$page = ['contexte_implicite' => $contexte_implicite]; // ignorer le cache deja lu
434 434
 		include_spip('inc/invalideur');
435 435
 		retire_caches($chemin_cache); # API invalideur inutile
436
-		supprimer_fichier(_DIR_CACHE . $chemin_cache);
436
+		supprimer_fichier(_DIR_CACHE.$chemin_cache);
437 437
 		if (isset($chemin_cache_session) and $chemin_cache_session) {
438
-			supprimer_fichier(_DIR_CACHE . $chemin_cache_session);
438
+			supprimer_fichier(_DIR_CACHE.$chemin_cache_session);
439 439
 		}
440 440
 	}
441 441
 
Please login to merge, or discard this patch.