Completed
Push — master ( a0df01...3bc277 )
by cam
04:49
created
ecrire/inc/plonger.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
 
35 35
 	$res = sql_select("rub1.id_rubrique, rub1.titre, rub1.id_parent, rub1.lang, rub1.langue_choisie, rub2.id_rubrique AS id_enfant",
36 36
 		"spip_rubriques AS rub1 LEFT JOIN spip_rubriques AS rub2 ON (rub1.id_rubrique = rub2.id_parent)",
37
-		"rub1.id_parent = " . sql_quote($id_rubrique) . "
38
-			AND rub1.id_rubrique!=" . sql_quote($exclu) . "
39
-			AND (rub2.id_rubrique IS NULL OR rub2.id_rubrique!=" . sql_quote($exclu) . ")", "", "0+rub1.titre,rub1.titre");
37
+		"rub1.id_parent = ".sql_quote($id_rubrique)."
38
+			AND rub1.id_rubrique!=" . sql_quote($exclu)."
39
+			AND (rub2.id_rubrique IS NULL OR rub2.id_rubrique!=" . sql_quote($exclu).")", "", "0+rub1.titre,rub1.titre");
40 40
 
41 41
 	while ($row = sql_fetch($res)) {
42 42
 		if (autoriser('voir', 'rubrique', $row['id_rubrique'])) {
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 				if ($row['langue_choisie'] != 'oui') {
47 47
 					$t .= ' <small title="'
48 48
 						. traduire_nom_langue($row['lang'])
49
-						. '">[' . $row['lang'] . ']</small>';
49
+						. '">['.$row['lang'].']</small>';
50 50
 				}
51 51
 				$ordre[$row['id_rubrique']] = $t;
52 52
 			}
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
 	}
55 55
 	$next = isset($list[$col]) ? $list[$col] : 0;
56 56
 	if ($ordre) {
57
-		$rec = generer_url_ecrire('plonger', "rac=$idom&exclus=$exclu&do=$do&col=" . ($col + 1));
57
+		$rec = generer_url_ecrire('plonger', "rac=$idom&exclus=$exclu&do=$do&col=".($col + 1));
58 58
 		$info = generer_url_ecrire('informer', "type=rubrique&rac=$idom&do=$do&id=");
59
-		$args = "'$idom',this,$col,'" . $GLOBALS['spip_lang_left'] . "','$info',event";
59
+		$args = "'$idom',this,$col,'".$GLOBALS['spip_lang_left']."','$info',event";
60 60
 
61 61
 		foreach ($ordre as $id => $titrebrut) {
62 62
 			$titre = supprimer_numero($titrebrut);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 				$url = "\nhref='javascript:void(0)'";
71 71
 			}
72 72
 
73
-			$js_func = $do . '_selection_titre';
73
+			$js_func = $do.'_selection_titre';
74 74
 			$click = "\nonclick=\"changerhighlight(this.parentNode.parentNode.parentNode);\nreturn "
75 75
 				. (!is_array($list) ? ' false'
76 76
 					: "aff_selection_provisoire($id,$args)")
@@ -97,14 +97,14 @@  discard block
 block discarded – undo
97 97
 		}
98 98
 	}
99 99
 
100
-	$idom2 = $idom . "_col_" . ($col + 1);
100
+	$idom2 = $idom."_col_".($col + 1);
101 101
 	$left = ($col * 150);
102 102
 
103 103
 	return http_img_pack("loader.svg", "",
104
-		"class='loader' style='visibility: hidden; position: absolute; " . $GLOBALS['spip_lang_left'] . ": "
104
+		"class='loader' style='visibility: hidden; position: absolute; ".$GLOBALS['spip_lang_left'].": "
105 105
 		. ($left - 30)
106 106
 		. "px; top: 2px; z-index: 2;' id='img_$idom2'")
107
-	. "<div style='width: 150px; height: 100%; overflow: auto; position: absolute; top: 0px; " . $GLOBALS['spip_lang_left'] . ": "
107
+	. "<div style='width: 150px; height: 100%; overflow: auto; position: absolute; top: 0px; ".$GLOBALS['spip_lang_left'].": "
108 108
 	. ($left - 150)
109 109
 	. "px;'>"
110 110
 	. $ret
Please login to merge, or discard this patch.
ecrire/inc/headers.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -78,20 +78,20 @@  discard block
 block discarded – undo
78 78
 	if ((!$equiv and !spip_cookie_envoye()) or (
79 79
 			   (!empty($_SERVER['SERVER_SOFTWARE'])
80 80
 				   and _SERVEUR_SOFTWARE_ACCEPTE_LOCATION_APRES_COOKIE
81
-				   and preg_match("/"._SERVEUR_SOFTWARE_ACCEPTE_LOCATION_APRES_COOKIE."/i",$_SERVER['SERVER_SOFTWARE']))
81
+				   and preg_match("/"._SERVEUR_SOFTWARE_ACCEPTE_LOCATION_APRES_COOKIE."/i", $_SERVER['SERVER_SOFTWARE']))
82 82
 			or (!empty($_SERVER['SERVER_SIGNATURE'])
83 83
 				   and _SERVEUR_SIGNATURE_ACCEPTE_LOCATION_APRES_COOKIE
84
-				   and preg_match("/"._SERVEUR_SIGNATURE_ACCEPTE_LOCATION_APRES_COOKIE."/i",$_SERVER['SERVER_SIGNATURE']))
84
+				   and preg_match("/"._SERVEUR_SIGNATURE_ACCEPTE_LOCATION_APRES_COOKIE."/i", $_SERVER['SERVER_SIGNATURE']))
85 85
 			or function_exists('apache_getenv')
86 86
 			or defined('_SERVER_APACHE')
87 87
 		)
88 88
 	) {
89
-		@header("Location: " . $url);
89
+		@header("Location: ".$url);
90 90
 		$equiv = "";
91 91
 	} else {
92
-		@header("Refresh: 0; url=" . $url);
92
+		@header("Refresh: 0; url=".$url);
93 93
 		if (isset($GLOBALS['meta']['charset'])) {
94
-			@header("Content-Type: text/html; charset=" . $GLOBALS['meta']['charset']);
94
+			@header("Content-Type: text/html; charset=".$GLOBALS['meta']['charset']);
95 95
 		}
96 96
 		$equiv = "<meta http-equiv='Refresh' content='0; url=$url'>";
97 97
 	}
@@ -103,11 +103,11 @@  discard block
 block discarded – undo
103 103
 	html_lang_attributes(), '
104 104
 <head>',
105 105
 	$equiv, '
106
-<title>HTTP ' . $status . '</title>
107
-' . ((isset($GLOBALS['meta']['charset'])) ? '<meta http-equiv="Content-Type" content="text/html;charset=' . $GLOBALS['meta']['charset'] . '">' : '') . '
106
+<title>HTTP ' . $status.'</title>
107
+' . ((isset($GLOBALS['meta']['charset'])) ? '<meta http-equiv="Content-Type" content="text/html;charset='.$GLOBALS['meta']['charset'].'">' : '').'
108 108
 </head>
109 109
 <body>
110
-<h1>HTTP ' . $status . '</h1>
110
+<h1>HTTP ' . $status.'</h1>
111 111
 <a href="',
112 112
 	quote_amp($url),
113 113
 	'">',
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 		# en theorie on devrait faire ca tout le temps, mais quand la chaine
143 143
 		# commence par ? c'est imperatif, sinon l'url finale n'est pas la bonne
144 144
 		if ($url[0] == '?') {
145
-			$url = url_de_base() . $url;
145
+			$url = url_de_base().$url;
146 146
 		}
147 147
 		$url = str_replace('&amp;', '&', $url);
148 148
 		spip_log("redirige formulaire ajax: $url");
@@ -150,9 +150,9 @@  discard block
 block discarded – undo
150 150
 		if ($format == 'ajaxform') {
151 151
 			return array(
152 152
 				// on renvoie un lien masque qui sera traite par ajaxCallback.js
153
-				'<a href="' . quote_amp($url) . '" name="ajax_redirect"  style="display:none;">' . _T('navigateur_pas_redirige') . '</a>',
153
+				'<a href="'.quote_amp($url).'" name="ajax_redirect"  style="display:none;">'._T('navigateur_pas_redirige').'</a>',
154 154
 				// et un message au cas ou
155
-				'<br /><a href="' . quote_amp($url) . '">' . _T('navigateur_pas_redirige') . '</a>'
155
+				'<br /><a href="'.quote_amp($url).'">'._T('navigateur_pas_redirige').'</a>'
156 156
 			);
157 157
 		} else // format message texte, tout en js inline
158 158
 		{
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 				"<script type='text/javascript'>if (parent.window){parent.window.document.location.replace(\"$url\");} else {document.location.replace(\"$url\");}</script>"
162 162
 				. http_img_pack('loader.svg', '', " class='loader'")
163 163
 				. '<br />'
164
-				. '<a href="' . quote_amp($url) . '">' . _T('navigateur_pas_redirige') . '</a>';
164
+				. '<a href="'.quote_amp($url).'">'._T('navigateur_pas_redirige').'</a>';
165 165
 		}
166 166
 	}
167 167
 }
@@ -218,9 +218,9 @@  discard block
 block discarded – undo
218 218
 
219 219
 	$php_cgi = ($GLOBALS['flag_sapi_name'] and preg_match(",cgi,i", @php_sapi_name()));
220 220
 	if ($php_cgi) {
221
-		header("Status: " . $status_string[$status]);
221
+		header("Status: ".$status_string[$status]);
222 222
 	} else {
223
-		header("HTTP/1.0 " . $status_string[$status]);
223
+		header("HTTP/1.0 ".$status_string[$status]);
224 224
 	}
225 225
 }
226 226
 
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
 
243 243
 	header("Content-Type: text/html; charset=$charset");
244 244
 	header("Expires: 0");
245
-	header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
245
+	header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
246 246
 	header("Cache-Control: no-cache, must-revalidate");
247 247
 	header("Pragma: no-cache");
248 248
 }
Please login to merge, or discard this patch.
ecrire/inc/selectionner.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
 	if ($aff_racine) {
56 56
 		$info = generer_url_ecrire('informer', "type=rubrique&rac=$idom&do=$do&id=");
57
-		$idom3 = $idom . "_selection";
57
+		$idom3 = $idom."_selection";
58 58
 
59 59
 		$onClick = "jQuery(this).parent().addClass('on');jQuery('#choix_parent_principal .on').removeClass('on'); aff_selection(0, '$idom3', '$info', event);return false;";
60 60
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 				textebrut(_T('info_racine_site')))),
64 64
 			"\n\r", "  ");
65 65
 
66
-		$js_func = $do . '_selection_titre';
66
+		$js_func = $do.'_selection_titre';
67 67
 		$ondbClick = "$js_func('$ondbClick',0,'selection_rubrique','id_parent');";
68 68
 
69 69
 		$aff_racine = "<div class='petite-racine item'>"
@@ -104,12 +104,12 @@  discard block
 block discarded – undo
104 104
  **/
105 105
 function construire_selectionner_hierarchie($idom, $liste, $racine, $url, $name, $url_init = '') {
106 106
 
107
-	$idom1 = $idom . "_champ_recherche";
108
-	$idom2 = $idom . "_principal";
109
-	$idom3 = $idom . "_selection";
110
-	$idom4 = $idom . "_col_1";
111
-	$idom5 = 'img_' . $idom4;
112
-	$idom6 = $idom . "_fonc";
107
+	$idom1 = $idom."_champ_recherche";
108
+	$idom2 = $idom."_principal";
109
+	$idom3 = $idom."_selection";
110
+	$idom4 = $idom."_col_1";
111
+	$idom5 = 'img_'.$idom4;
112
+	$idom6 = $idom."_fonc";
113 113
 
114 114
 	return "<div id='$idom'>"
115 115
 	. "<a id='$idom6' style='visibility: hidden;'"
@@ -117,9 +117,9 @@  discard block
 block discarded – undo
117 117
 	. "></a>"
118 118
 	. "<div class='recherche_rapide_parent'>"
119 119
 	. http_img_pack("loader.svg", "",
120
-		"class='loader' style='visibility: hidden;float:" . $GLOBALS['spip_lang_right'] . "' id='$idom5'")
120
+		"class='loader' style='visibility: hidden;float:".$GLOBALS['spip_lang_right']."' id='$idom5'")
121 121
 	. ""
122
-	. "<input style='width: 100px;float:" . $GLOBALS['spip_lang_right'] . ";' type='search' id='$idom1'"
122
+	. "<input style='width: 100px;float:".$GLOBALS['spip_lang_right'].";' type='search' id='$idom1'"
123 123
 	// eliminer Return car il provoque la soumission (balise unique)
124 124
 	// et eliminer Tab pour la navigation au clavier
125 125
 	// ce serait encore mieux de ne le faire que s'il y a encore plusieurs
@@ -166,8 +166,8 @@  discard block
 block discarded – undo
166 166
 
167 167
 	$liste = $id_rubrique;
168 168
 	$id_rubrique = intval($id_rubrique);
169
-	while ($id_rubrique = sql_getfetsel("id_parent", "spip_rubriques", "id_rubrique = " . $id_rubrique)) {
170
-		$liste = $id_rubrique . ",$liste";
169
+	while ($id_rubrique = sql_getfetsel("id_parent", "spip_rubriques", "id_rubrique = ".$id_rubrique)) {
170
+		$liste = $id_rubrique.",$liste";
171 171
 	}
172 172
 
173 173
 	return explode(',', "0,$liste");
Please login to merge, or discard this patch.
ecrire/inc/chercher_rubrique.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 	{
147 147
 		$r = "<option$selected value='$root' class='$class' style='$style'>$espace"
148 148
 			. $data[$root]
149
-			. '</option>' . "\n";
149
+			. '</option>'."\n";
150 150
 	} else {
151 151
 		$r = '';
152 152
 	}
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 	}
167 167
 
168 168
 	// et voila le travail
169
-	return $r . $sous;
169
+	return $r.$sous;
170 170
 }
171 171
 
172 172
 /**
@@ -208,11 +208,11 @@  discard block
 block discarded – undo
208 208
 	while ($r = sql_fetch($q)) {
209 209
 		if (autoriser('voir', 'rubrique', $r['id_rubrique'])) {
210 210
 			// titre largeur maxi a 50
211
-			$titre = couper(supprimer_tags(typo($r['titre'])) . " ", 50);
211
+			$titre = couper(supprimer_tags(typo($r['titre']))." ", 50);
212 212
 			if ($GLOBALS['meta']['multi_rubriques'] == 'oui'
213 213
 				and ($r['langue_choisie'] == "oui" or $r['id_parent'] == 0)
214 214
 			) {
215
-				$titre .= ' [' . traduire_nom_langue($r['lang']) . ']';
215
+				$titre .= ' ['.traduire_nom_langue($r['lang']).']';
216 216
 			}
217 217
 			$data[$r['id_rubrique']] = $titre;
218 218
 			$enfants[$r['id_parent']][] = $r['id_rubrique'];
@@ -238,9 +238,9 @@  discard block
 block discarded – undo
238 238
 	$att = " id='id_parent' name='id_parent'\nclass='selecteur_parent verdana1'";
239 239
 
240 240
 	if (preg_match(',^<option[^<>]*value=.(\d*).[^<>]*>([^<]*)</option>$,', $opt, $r)) {
241
-		$r = "<input$att type='hidden' value='" . $r[1] . "' />" . $r[2];
241
+		$r = "<input$att type='hidden' value='".$r[1]."' />".$r[2];
242 242
 	} else {
243
-		$r = "<select" . $att . " size='1'>\n$opt</select>\n";
243
+		$r = "<select".$att." size='1'>\n$opt</select>\n";
244 244
 	}
245 245
 
246 246
 	# message pour neuneus (a supprimer ?)
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
 function selecteur_rubrique_ajax($id_rubrique, $type, $restreint, $idem = 0, $do = 'aff') {
283 283
 
284 284
 	if ($id_rubrique) {
285
-		$titre = sql_getfetsel("titre", "spip_rubriques", "id_rubrique=" . intval($id_rubrique));
285
+		$titre = sql_getfetsel("titre", "spip_rubriques", "id_rubrique=".intval($id_rubrique));
286 286
 	} else {
287 287
 		if ($type == 'auteur') {
288 288
 			$titre = '&nbsp;';
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
 	}
293 293
 
294 294
 	$titre = str_replace('&amp;', '&', entites_html(textebrut(typo($titre))));
295
-	$init = " disabled='disabled' type='text' value=\"" . $titre . "\"\nstyle='width:300px;'";
295
+	$init = " disabled='disabled' type='text' value=\"".$titre."\"\nstyle='width:300px;'";
296 296
 
297 297
 	$url = generer_url_ecrire('selectionner', "id=$id_rubrique&type=$type&do=$do"
298 298
 		. (!$idem ? '' : "&exclus=$idem")
@@ -337,9 +337,9 @@  discard block
 block discarded – undo
337 337
 		. $js
338 338
 		. "return charger_node_url_si_vide('"
339 339
 		. $url
340
-		. "', this.parentNode.nextSibling, this.nextSibling,'',event)\" title='" . attribut_html(_T('titre_image_selecteur')) . "'><img src='"
340
+		. "', this.parentNode.nextSibling, this.nextSibling,'',event)\" title='".attribut_html(_T('titre_image_selecteur'))."'><img src='"
341 341
 		. chemin_image($icone)
342
-		. "'\nstyle='vertical-align: middle;' alt='" . attribut_html(_T('titre_image_selecteur')) . "' /></a><img src='"
342
+		. "'\nstyle='vertical-align: middle;' alt='".attribut_html(_T('titre_image_selecteur'))."' /></a><img src='"
343 343
 		. chemin_image('loader.svg')
344 344
 		. "' class='loader' id='img_"
345 345
 		. $idom
Please login to merge, or discard this patch.
ecrire/base/upgrade.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	if ($GLOBALS['spip_version_base'] != $GLOBALS['meta']['version_installee']) {
57 57
 		if (!is_numeric(_request('reinstall'))) {
58 58
 			include_spip('base/create');
59
-			spip_log('recree les tables eventuellement disparues', 'maj.' . _LOG_INFO_IMPORTANTE);
59
+			spip_log('recree les tables eventuellement disparues', 'maj.'._LOG_INFO_IMPORTANTE);
60 60
 			creer_base();
61 61
 		}
62 62
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 			exit;
70 70
 		}
71 71
 	}
72
-	spip_log('Fin de mise a jour SQL. Debut m-a-j acces et config', 'maj.' . _LOG_INFO_IMPORTANTE);
72
+	spip_log('Fin de mise a jour SQL. Debut m-a-j acces et config', 'maj.'._LOG_INFO_IMPORTANTE);
73 73
 
74 74
 	// supprimer quelques fichiers temporaires qui peuvent se retrouver invalides
75 75
 	@spip_unlink(_CACHE_RUBRIQUES);
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	@spip_unlink(_CACHE_PLUGINS_OPT);
79 79
 	@spip_unlink(_CACHE_PLUGINS_FCT);
80 80
 	@spip_unlink(_CACHE_CHEMIN);
81
-	@spip_unlink(_DIR_TMP . 'plugin_xml_cache.gz');
81
+	@spip_unlink(_DIR_TMP.'plugin_xml_cache.gz');
82 82
 
83 83
 	include_spip('inc/auth');
84 84
 	auth_synchroniser_distant();
@@ -114,8 +114,8 @@  discard block
 block discarded – undo
114 114
 	// version_installee = 1.702; quand on a besoin de forcer une MAJ
115 115
 
116 116
 	spip_log(
117
-		"Version anterieure: $version_installee. Courante: " . $GLOBALS['spip_version_base'],
118
-		'maj.' . _LOG_INFO_IMPORTANTE
117
+		"Version anterieure: $version_installee. Courante: ".$GLOBALS['spip_version_base'],
118
+		'maj.'._LOG_INFO_IMPORTANTE
119 119
 	);
120 120
 	if (!$version_installee or ($GLOBALS['spip_version_base'] < $version_installee)) {
121 121
 		sql_replace(
@@ -140,10 +140,10 @@  discard block
 block discarded – undo
140 140
 			$nom = sprintf('v%03d', $n);
141 141
 			$f = charger_fonction($nom, 'maj/legacy', true);
142 142
 			if ($f) {
143
-				spip_log("$f repercute les modifications de la version " . ($n / 10), 'maj.' . _LOG_INFO_IMPORTANTE);
143
+				spip_log("$f repercute les modifications de la version ".($n / 10), 'maj.'._LOG_INFO_IMPORTANTE);
144 144
 				$f($version_installee, $GLOBALS['spip_version_base']);
145 145
 			} else {
146
-				spip_log("pas de fonction pour la maj $n $nom", 'maj.' . _LOG_INFO_IMPORTANTE);
146
+				spip_log("pas de fonction pour la maj $n $nom", 'maj.'._LOG_INFO_IMPORTANTE);
147 147
 			}
148 148
 			$n++;
149 149
 		}
@@ -170,9 +170,9 @@  discard block
 block discarded – undo
170 170
 	$res = maj_while($version_installee, $cible, $GLOBALS['maj'], 'version_installee', 'meta', $redirect, $debut_page);
171 171
 	if ($res) {
172 172
 		if (!is_array($res)) {
173
-			spip_log("Pb d'acces SQL a la mise a jour", 'maj.' . _LOG_INFO_ERREUR);
173
+			spip_log("Pb d'acces SQL a la mise a jour", 'maj.'._LOG_INFO_ERREUR);
174 174
 		} else {
175
-			echo _T('avis_operation_echec') . ' ' . join(' ', $res);
175
+			echo _T('avis_operation_echec').' '.join(' ', $res);
176 176
 			echo install_fin_html();
177 177
 		}
178 178
 	}
@@ -259,9 +259,9 @@  discard block
 block discarded – undo
259 259
 		$res = maj_while($current_version, $version_cible, $maj, $nom_meta_base_version, $table_meta, $redirect);
260 260
 		if ($res) {
261 261
 			if (!is_array($res)) {
262
-				spip_log("Pb d'acces SQL a la mise a jour", 'maj.' . _LOG_INFO_ERREUR);
262
+				spip_log("Pb d'acces SQL a la mise a jour", 'maj.'._LOG_INFO_ERREUR);
263 263
 			} else {
264
-				echo '<p>' . _T('avis_operation_echec') . ' ' . join(' ', $res) . '</p>';
264
+				echo '<p>'._T('avis_operation_echec').' '.join(' ', $res).'</p>';
265 265
 			}
266 266
 		}
267 267
 	}
@@ -313,11 +313,11 @@  discard block
 block discarded – undo
313 313
 	$timeout = _UPGRADE_TIME_OUT * 2;
314 314
 	$titre = _T('titre_page_upgrade');
315 315
 	$balise_img = charger_filtre('balise_img');
316
-	$titre .= $balise_img(chemin_image('loader.svg'),'','loader');
316
+	$titre .= $balise_img(chemin_image('loader.svg'), '', 'loader');
317 317
 	echo(install_debut_html($titre));
318 318
 	// script de rechargement auto sur timeout
319 319
 	$redirect = generer_url_ecrire('upgrade', "reinstall=$installee&meta=$meta&table=$table", true);
320
-	echo http_script("window.setTimeout('location.href=\"" . $redirect . "\";'," . ($timeout * 1000) . ')');
320
+	echo http_script("window.setTimeout('location.href=\"".$redirect."\";',".($timeout * 1000).')');
321 321
 	echo "<div style='text-align: left'>\n";
322 322
 	if (ob_get_level()) {
323 323
 		ob_flush();
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
 				return array($v, $etape);
406 406
 			}
407 407
 			$n = time() - $time;
408
-			spip_log("$table $meta: $v en $n secondes", 'maj.' . _LOG_INFO_IMPORTANTE);
408
+			spip_log("$table $meta: $v en $n secondes", 'maj.'._LOG_INFO_IMPORTANTE);
409 409
 			if ($meta) {
410 410
 				ecrire_meta($meta, $installee = $v, 'oui', $table);
411 411
 			}
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
 	if ($meta) {
422 422
 		ecrire_meta($meta, $cible, 'oui', $table);
423 423
 	}
424
-	spip_log("MAJ terminee. $meta: $installee", 'maj.' . _LOG_INFO_IMPORTANTE);
424
+	spip_log("MAJ terminee. $meta: $installee", 'maj.'._LOG_INFO_IMPORTANTE);
425 425
 
426 426
 	return array();
427 427
 }
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
  * @return int
447 447
  */
448 448
 function serie_alter($serie, $q = array(), $meta = '', $table = 'meta', $redirect = '') {
449
-	$meta2 = $meta . '_maj_' . $serie;
449
+	$meta2 = $meta.'_maj_'.$serie;
450 450
 	$etape = 0;
451 451
 	if (isset($GLOBALS[$table][$meta2])) {
452 452
 		$etape = intval($GLOBALS[$table][$meta2]);
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
 				and function_exists($f = array_shift($r))
459 459
 			) {
460 460
 				// note: $r (arguments de la fonction $f) peut avoir des données tabulaires
461
-				spip_log("$msg: $f " . @join(',', $r), 'maj.' . _LOG_INFO_IMPORTANTE);
461
+				spip_log("$msg: $f ".@join(',', $r), 'maj.'._LOG_INFO_IMPORTANTE);
462 462
 				// pour les fonctions atomiques sql_xx
463 463
 				// on enregistre le meta avant de lancer la fonction,
464 464
 				// de maniere a eviter de boucler sur timeout
@@ -476,12 +476,12 @@  discard block
 block discarded – undo
476 476
 					relance_maj($meta, $table, $redirect);
477 477
 				}
478 478
 				ecrire_meta($meta2, $i + 1, 'non', $table);
479
-				spip_log("$meta2: ok", 'maj.' . _LOG_INFO_IMPORTANTE);
479
+				spip_log("$meta2: ok", 'maj.'._LOG_INFO_IMPORTANTE);
480 480
 			} else {
481 481
 				if (!is_array($r)) {
482
-					spip_log("maj $i format incorrect", 'maj.' . _LOG_ERREUR);
482
+					spip_log("maj $i format incorrect", 'maj.'._LOG_ERREUR);
483 483
 				} else {
484
-					spip_log("maj $i fonction $f non definie", 'maj.' . _LOG_ERREUR);
484
+					spip_log("maj $i fonction $f non definie", 'maj.'._LOG_ERREUR);
485 485
 				}
486 486
 				// en cas d'erreur serieuse, on s'arrete
487 487
 				// mais on permet de passer par dessus en rechargeant la page.
@@ -557,9 +557,9 @@  discard block
 block discarded – undo
557 557
 		} else {
558 558
 			// on le fait manuellement, car ecrire_meta utilise le champs impt qui est absent sur les vieilles versions
559 559
 			$GLOBALS['meta']['version_installee'] = $version;
560
-			sql_updateq('spip_meta', array('valeur' => $version), 'nom=' . sql_quote('version_installee'));
560
+			sql_updateq('spip_meta', array('valeur' => $version), 'nom='.sql_quote('version_installee'));
561 561
 		}
562
-		spip_log("mise a jour de la base en $version", 'maj.' . _LOG_INFO_IMPORTANTE);
562
+		spip_log("mise a jour de la base en $version", 'maj.'._LOG_INFO_IMPORTANTE);
563 563
 	} else {
564 564
 		echo _T('alerte_maj_impossible', array('version' => $version));
565 565
 		exit;
Please login to merge, or discard this patch.