Completed
Pull Request — master (#36)
by
unknown
06:08
created
ecrire/maj/v018.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 				"fille.id_parent = maman.id_forum AND fille.id_thread <> maman.id_thread", '', "thread");
85 85
 			while ($row = sql_fetch($r)) {
86 86
 				if ($row['thread'] == $precedent) {
87
-					$discussion .= "," . $row['id'];
87
+					$discussion .= ",".$row['id'];
88 88
 				} else {
89 89
 					if ($precedent) {
90 90
 						sql_updateq("spip_forum", array("id_thread" => $precedent), "id_forum IN ($discussion)");
Please login to merge, or discard this patch.
ecrire/req/pg.exp.php 1 patch
Spacing   +81 added lines, -82 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	if (!$link) {
66 66
 		$erreurs[] = pg_last_error();
67 67
 		foreach ($erreurs as $e) {
68
-			spip_log('Echec pg_connect. Erreur : ' . $e, 'pg.' . _LOG_HS);
68
+			spip_log('Echec pg_connect. Erreur : '.$e, 'pg.'._LOG_HS);
69 69
 		}
70 70
 
71 71
 		return false;
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
 		);
83 83
 	}
84 84
 
85
-	spip_log("Connexion vers $host, base $db, prefixe $prefixe " . ($link ? 'operationnelle' : 'impossible'),
86
-		'pg.' . _LOG_DEBUG);
85
+	spip_log("Connexion vers $host, base $db, prefixe $prefixe ".($link ? 'operationnelle' : 'impossible'),
86
+		'pg.'._LOG_DEBUG);
87 87
 
88 88
 	return !$link ? false : array(
89 89
 		'db' => $db,
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 	} else {
172 172
 		$suite = '';
173 173
 	}
174
-	$query = preg_replace('/([,\s])spip_/', '\1' . $prefixe . '_', $query) . $suite;
174
+	$query = preg_replace('/([,\s])spip_/', '\1'.$prefixe.'_', $query).$suite;
175 175
 
176 176
 	// renvoyer la requete inerte si demandee
177 177
 	if (!$requeter) {
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 	// ou revoir l'api de sql_alter en creant un 
242 242
 	// sql_alter_table($table,array($actions));
243 243
 	if (!preg_match("/\s*((\s*IGNORE)?\s*TABLE\s*([^\s]*))\s*(.*)?/is", $query, $regs)) {
244
-		spip_log("$query mal comprise", 'pg.' . _LOG_ERREUR);
244
+		spip_log("$query mal comprise", 'pg.'._LOG_ERREUR);
245 245
 
246 246
 		return false;
247 247
 	}
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 	$i = 0;
255 255
 	$ouverte = false;
256 256
 	while ($do = array_shift($todo)) {
257
-		$todo2[$i] = isset($todo2[$i]) ? $todo2[$i] . "," . $do : $do;
257
+		$todo2[$i] = isset($todo2[$i]) ? $todo2[$i].",".$do : $do;
258 258
 		$o = (false !== strpos($do, "("));
259 259
 		$f = (false !== strpos($do, ")"));
260 260
 		if ($o and !$f) {
@@ -267,24 +267,24 @@  discard block
 block discarded – undo
267 267
 		}
268 268
 	}
269 269
 	$todo = $todo2;
270
-	$query = $debut . ' ' . array_shift($todo);
270
+	$query = $debut.' '.array_shift($todo);
271 271
 
272 272
 	if (!preg_match('/^\s*(IGNORE\s*)?TABLE\s+(\w+)\s+(ADD|DROP|CHANGE|MODIFY|RENAME)\s*(.*)$/is', $query, $r)) {
273
-		spip_log("$query incompris", 'pg.' . _LOG_ERREUR);
273
+		spip_log("$query incompris", 'pg.'._LOG_ERREUR);
274 274
 	} else {
275 275
 		if ($r[1]) {
276
-			spip_log("j'ignore IGNORE dans $query", 'pg.' . _LOG_AVERTISSEMENT);
276
+			spip_log("j'ignore IGNORE dans $query", 'pg.'._LOG_AVERTISSEMENT);
277 277
 		}
278
-		$f = 'spip_pg_alter_' . strtolower($r[3]);
278
+		$f = 'spip_pg_alter_'.strtolower($r[3]);
279 279
 		if (function_exists($f)) {
280 280
 			$f($r[2], $r[4], $serveur, $requeter);
281 281
 		} else {
282
-			spip_log("$query non prevu", 'pg.' . _LOG_ERREUR);
282
+			spip_log("$query non prevu", 'pg.'._LOG_ERREUR);
283 283
 		}
284 284
 	}
285 285
 	// Alter a plusieurs args. Faudrait optimiser.
286 286
 	if ($todo) {
287
-		spip_pg_alter("TABLE $table " . join(',', $todo));
287
+		spip_pg_alter("TABLE $table ".join(',', $todo));
288 288
 	}
289 289
 
290 290
 }
@@ -292,10 +292,10 @@  discard block
 block discarded – undo
292 292
 // http://code.spip.net/@spip_pg_alter_change
293 293
 function spip_pg_alter_change($table, $arg, $serveur = '', $requeter = true) {
294 294
 	if (!preg_match('/^`?(\w+)`?\s+`?(\w+)`?\s+(.*?)\s*(DEFAULT .*?)?(NOT\s+NULL)?\s*(DEFAULT .*?)?$/i', $arg, $r)) {
295
-		spip_log("alter change: $arg  incompris", 'pg.' . _LOG_ERREUR);
295
+		spip_log("alter change: $arg  incompris", 'pg.'._LOG_ERREUR);
296 296
 	} else {
297 297
 		list(, $old, $new, $type, $default, $null, $def2) = $r;
298
-		$actions = array("ALTER $old TYPE " . mysql2pg_type($type));
298
+		$actions = array("ALTER $old TYPE ".mysql2pg_type($type));
299 299
 		if ($null) {
300 300
 			$actions[] = "ALTER $old SET NOT NULL";
301 301
 		} else {
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 			$actions[] = "ALTER $old DROP DEFAULT";
309 309
 		}
310 310
 
311
-		spip_pg_query("ALTER TABLE $table " . join(', ', $actions));
311
+		spip_pg_query("ALTER TABLE $table ".join(', ', $actions));
312 312
 
313 313
 		if ($old != $new) {
314 314
 			spip_pg_query("ALTER TABLE $table RENAME $old TO $new", $serveur);
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
 // http://code.spip.net/@spip_pg_alter_add
320 320
 function spip_pg_alter_add($table, $arg, $serveur = '', $requeter = true) {
321 321
 	if (!preg_match('/^(COLUMN|INDEX|KEY|PRIMARY\s+KEY|)\s*(.*)$/', $arg, $r)) {
322
-		spip_log("alter add $arg  incompris", 'pg.' . _LOG_ERREUR);
322
+		spip_log("alter add $arg  incompris", 'pg.'._LOG_ERREUR);
323 323
 
324 324
 		return null;
325 325
 	}
@@ -329,13 +329,13 @@  discard block
 block discarded – undo
329 329
 			$m[2] = $n[1];
330 330
 		}
331 331
 
332
-		return spip_pg_query("ALTER TABLE $table ADD " . $m[1] . ' ' . mysql2pg_type($m[2]), $serveur, $requeter);
332
+		return spip_pg_query("ALTER TABLE $table ADD ".$m[1].' '.mysql2pg_type($m[2]), $serveur, $requeter);
333 333
 	} elseif ($r[1][0] == 'P') {
334 334
 		// la primary peut etre sur plusieurs champs
335 335
 		$r[2] = trim(str_replace('`', '', $r[2]));
336 336
 		$m = ($r[2][0] == '(') ? substr($r[2], 1, -1) : $r[2];
337 337
 
338
-		return spip_pg_query("ALTER TABLE $table ADD CONSTRAINT $table" . '_pkey PRIMARY KEY (' . $m . ')', $serveur,
338
+		return spip_pg_query("ALTER TABLE $table ADD CONSTRAINT $table".'_pkey PRIMARY KEY ('.$m.')', $serveur,
339 339
 			$requeter);
340 340
 	} else {
341 341
 		preg_match('/([^\s,]*)\s*(.*)?/', $r[2], $m);
@@ -369,23 +369,23 @@  discard block
 block discarded – undo
369 369
 // http://code.spip.net/@spip_pg_alter_drop
370 370
 function spip_pg_alter_drop($table, $arg, $serveur = '', $requeter = true) {
371 371
 	if (!preg_match('/^(COLUMN|INDEX|KEY|PRIMARY\s+KEY|)\s*`?(\w*)`?/', $arg, $r)) {
372
-		spip_log("alter drop: $arg  incompris", 'pg.' . _LOG_ERREUR);
372
+		spip_log("alter drop: $arg  incompris", 'pg.'._LOG_ERREUR);
373 373
 	} else {
374 374
 		if (!$r[1] or $r[1] == 'COLUMN') {
375
-			return spip_pg_query("ALTER TABLE $table DROP " . $r[2], $serveur);
375
+			return spip_pg_query("ALTER TABLE $table DROP ".$r[2], $serveur);
376 376
 		} elseif ($r[1][0] == 'P') {
377
-			return spip_pg_query("ALTER TABLE $table DROP CONSTRAINT $table" . '_pkey', $serveur);
377
+			return spip_pg_query("ALTER TABLE $table DROP CONSTRAINT $table".'_pkey', $serveur);
378 378
 		} else {
379
-			return spip_pg_query("DROP INDEX " . $table . '_' . $r[2], $serveur);
379
+			return spip_pg_query("DROP INDEX ".$table.'_'.$r[2], $serveur);
380 380
 		}
381 381
 	}
382 382
 }
383 383
 
384 384
 function spip_pg_alter_modify($table, $arg, $serveur = '', $requeter = true) {
385 385
 	if (!preg_match('/^`?(\w+)`?\s+(.*)$/', $arg, $r)) {
386
-		spip_log("alter modify: $arg  incompris", 'pg.' . _LOG_ERREUR);
386
+		spip_log("alter modify: $arg  incompris", 'pg.'._LOG_ERREUR);
387 387
 	} else {
388
-		return spip_pg_alter_change($table, $r[1] . ' ' . $arg, $serveur = '', $requeter = true);
388
+		return spip_pg_alter_change($table, $r[1].' '.$arg, $serveur = '', $requeter = true);
389 389
 	}
390 390
 }
391 391
 
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
 	} elseif (preg_match('/^(TO)\s*`?(\w*)`?/', $arg, $r)) {
402 402
 		$rename = $r[2];
403 403
 	} else {
404
-		spip_log("alter rename: $arg  incompris", 'pg.' . _LOG_ERREUR);
404
+		spip_log("alter rename: $arg  incompris", 'pg.'._LOG_ERREUR);
405 405
 	}
406 406
 
407 407
 	return $rename ? spip_pg_query("ALTER TABLE $table RENAME TO $rename") : false;
@@ -421,8 +421,8 @@  discard block
 block discarded – undo
421 421
  */
422 422
 function spip_pg_create_index($nom, $table, $champs, $serveur = '', $requeter = true) {
423 423
 	if (!($nom or $table or $champs)) {
424
-		spip_log("Champ manquant pour creer un index pg ($nom, $table, (" . @join(',', $champs) . "))",
425
-			'pg.' . _LOG_ERREUR);
424
+		spip_log("Champ manquant pour creer un index pg ($nom, $table, (".@join(',', $champs)."))",
425
+			'pg.'._LOG_ERREUR);
426 426
 
427 427
 		return false;
428 428
 	}
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
 
433 433
 	// PG ne differentie pas noms des index en fonction des tables
434 434
 	// il faut donc creer des noms uniques d'index pour une base pg
435
-	$nom = $table . '_' . $nom;
435
+	$nom = $table.'_'.$nom;
436 436
 	// enlever d'eventuelles parentheses deja presentes sur champs
437 437
 	if (!is_array($champs)) {
438 438
 		if ($champs[0] == "(") {
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
 		}
441 441
 		$champs = array($champs);
442 442
 	}
443
-	$query = "CREATE INDEX $nom ON $table (" . join(',', $champs) . ")";
443
+	$query = "CREATE INDEX $nom ON $table (".join(',', $champs).")";
444 444
 	if (!$requeter) {
445 445
 		return $query;
446 446
 	}
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
 	} else {
465 465
 		$suite = '';
466 466
 	}
467
-	$query = 'EXPLAIN ' . preg_replace('/([,\s])spip_/', '\1' . $prefixe . '_', $query) . $suite;
467
+	$query = 'EXPLAIN '.preg_replace('/([,\s])spip_/', '\1'.$prefixe.'_', $query).$suite;
468 468
 
469 469
 	if (!$requeter) {
470 470
 		return $query;
@@ -559,14 +559,14 @@  discard block
 block discarded – undo
559 559
 		}
560 560
 	}
561 561
 	$from = spip_pg_from($from, $prefixe);
562
-	$query = "SELECT " . $select
562
+	$query = "SELECT ".$select
563 563
 		. (!$from ? '' : "\nFROM $from")
564
-		. (!$where ? '' : ("\nWHERE " . (!is_array($where) ? calculer_pg_where($where) : (join("\n\tAND ",
564
+		. (!$where ? '' : ("\nWHERE ".(!is_array($where) ? calculer_pg_where($where) : (join("\n\tAND ",
565 565
 				array_map('calculer_pg_where', $where))))))
566 566
 		. spip_pg_groupby($groupby, $from, $select)
567 567
 		. (!$having ? '' : "\nHAVING $having")
568 568
 		. ($orderby ? ("\nORDER BY $orderby") : '')
569
-		. (!$limit ? '' : (" LIMIT $count" . (!$offset ? '' : " OFFSET $offset")));
569
+		. (!$limit ? '' : (" LIMIT $count".(!$offset ? '' : " OFFSET $offset")));
570 570
 
571 571
 	// renvoyer la requete inerte si demandee
572 572
 	if ($requeter === false) {
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
 
576 576
 	$r = spip_pg_trace_query($query, $serveur);
577 577
 
578
-	return $r ? $r : $query;;
578
+	return $r ? $r : $query; ;
579 579
 }
580 580
 
581 581
 // Le traitement des prefixes de table dans un Select se limite au FROM
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
 		$from = spip_pg_select_as($from);
588 588
 	}
589 589
 
590
-	return !$prefixe ? $from : preg_replace('/(\b)spip_/', '\1' . $prefixe . '_', $from);
590
+	return !$prefixe ? $from : preg_replace('/(\b)spip_/', '\1'.$prefixe.'_', $from);
591 591
 }
592 592
 
593 593
 // http://code.spip.net/@spip_pg_orderby
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
 	$arg = (is_array($order) ? $order : preg_split('/\s*,\s*/', $order));
597 597
 
598 598
 	foreach ($arg as $v) {
599
-		if (preg_match('/(case\s+.*?else\s+0\s+end)\s*AS\s+' . $v . '/', $select, $m)) {
599
+		if (preg_match('/(case\s+.*?else\s+0\s+end)\s*AS\s+'.$v.'/', $select, $m)) {
600 600
 
601 601
 			$res[] = $m[1];
602 602
 		} else {
@@ -757,7 +757,7 @@  discard block
 block discarded – undo
757 757
 			$n++;
758 758
 			$res .= "\nwhen $index=$v then $n";
759 759
 		}
760
-		$arg = $m[1] . "case $res else 0 end "
760
+		$arg = $m[1]."case $res else 0 end "
761 761
 			. substr($arg, strlen($m[0]));
762 762
 	}
763 763
 
@@ -802,9 +802,9 @@  discard block
 block discarded – undo
802 802
 	}
803 803
 
804 804
 	if (strtoupper($join) === 'AND') {
805
-		return $exp . join("\n\t$join ", array_map('calculer_pg_where', $v));
805
+		return $exp.join("\n\t$join ", array_map('calculer_pg_where', $v));
806 806
 	} else {
807
-		return $exp . join($join, $v);
807
+		return $exp.join($join, $v);
808 808
 	}
809 809
 }
810 810
 
@@ -815,7 +815,7 @@  discard block
 block discarded – undo
815 815
 		if (substr($k, -1) == '@') {
816 816
 			// c'est une jointure qui se refere au from precedent
817 817
 			// pas de virgule
818
-			$argsas .= '  ' . $v;
818
+			$argsas .= '  '.$v;
819 819
 		} else {
820 820
 			$as = '';
821 821
 			//  spip_log("$k : $v", _LOG_DEBUG);
@@ -825,7 +825,7 @@  discard block
 block discarded – undo
825 825
 				} elseif ($v != $k) {
826 826
 					$p = strpos($v, " ");
827 827
 					if ($p) {
828
-						$v = substr($v, 0, $p) . " AS $k" . substr($v, $p);
828
+						$v = substr($v, 0, $p)." AS $k".substr($v, $p);
829 829
 					} else {
830 830
 						$as = " AS $k";
831 831
 					}
@@ -833,7 +833,7 @@  discard block
 block discarded – undo
833 833
 			}
834 834
 			// spip_log("subs $k : $v avec $as", _LOG_DEBUG);
835 835
 			// if (strpos($v, 'JOIN') === false)  $argsas .= ', ';
836
-			$argsas .= ', ' . $v . $as;
836
+			$argsas .= ', '.$v.$as;
837 837
 		}
838 838
 	}
839 839
 
@@ -866,7 +866,7 @@  discard block
 block discarded – undo
866 866
 	$serveur = '',
867 867
 	$requeter = true
868 868
 ) {
869
-	$c = !$groupby ? '*' : ('DISTINCT ' . (is_string($groupby) ? $groupby : join(',', $groupby)));
869
+	$c = !$groupby ? '*' : ('DISTINCT '.(is_string($groupby) ? $groupby : join(',', $groupby)));
870 870
 	$r = spip_pg_select("COUNT($c)", $from, $where, '', '', '', $having, $serveur, $requeter);
871 871
 	if (!$requeter) {
872 872
 		return $r;
@@ -970,7 +970,7 @@  discard block
 block discarded – undo
970 970
 	// recherche de champs 'timestamp' pour mise a jour auto de ceux-ci
971 971
 	$couples = spip_pg_ajouter_champs_timestamp($table, $couples, $desc, $serveur);
972 972
 
973
-	return spip_pg_insert($table, "(" . join(',', array_keys($couples)) . ")", "(" . join(',', $couples) . ")", $desc,
973
+	return spip_pg_insert($table, "(".join(',', array_keys($couples)).")", "(".join(',', $couples).")", $desc,
974 974
 		$serveur, $requeter);
975 975
 }
976 976
 
@@ -991,7 +991,7 @@  discard block
 block discarded – undo
991 991
 	$c = isset($tab_couples[0]) ? $tab_couples[0] : array();
992 992
 	$les_cles = spip_pg_ajouter_champs_timestamp($table, $c, $desc, $serveur);
993 993
 
994
-	$cles = "(" . join(',', array_keys($les_cles)) . ')';
994
+	$cles = "(".join(',', array_keys($les_cles)).')';
995 995
 	$valeurs = array();
996 996
 	foreach ($tab_couples as $couples) {
997 997
 		foreach ($couples as $champ => $val) {
@@ -1000,7 +1000,7 @@  discard block
 block discarded – undo
1000 1000
 		// recherche de champs 'timestamp' pour mise a jour auto de ceux-ci
1001 1001
 		$couples = spip_pg_ajouter_champs_timestamp($table, $couples, $desc, $serveur);
1002 1002
 
1003
-		$valeurs[] = '(' . join(',', $couples) . ')';
1003
+		$valeurs[] = '('.join(',', $couples).')';
1004 1004
 	}
1005 1005
 	$valeurs = implode(', ', $valeurs);
1006 1006
 
@@ -1022,7 +1022,7 @@  discard block
 block discarded – undo
1022 1022
 
1023 1023
 	$set = array();
1024 1024
 	foreach ($couples as $champ => $val) {
1025
-		$set[] = $champ . '=' . $val;
1025
+		$set[] = $champ.'='.$val;
1026 1026
 	}
1027 1027
 
1028 1028
 	$query = calculer_pg_expression('UPDATE', $table, ',')
@@ -1059,7 +1059,7 @@  discard block
 block discarded – undo
1059 1059
 // http://code.spip.net/@spip_pg_replace
1060 1060
 function spip_pg_replace($table, $values, $desc, $serveur = '', $requeter = true) {
1061 1061
 	if (!$values) {
1062
-		spip_log("replace vide $table", 'pg.' . _LOG_AVERTISSEMENT);
1062
+		spip_log("replace vide $table", 'pg.'._LOG_AVERTISSEMENT);
1063 1063
 
1064 1064
 		return 0;
1065 1065
 	}
@@ -1091,7 +1091,7 @@  discard block
 block discarded – undo
1091 1091
 
1092 1092
 	$where = join(' AND ', $prims);
1093 1093
 	if (!$where) {
1094
-		return spip_pg_insert($table, "(" . join(',', array_keys($values)) . ")", "(" . join(',', $values) . ")", $desc,
1094
+		return spip_pg_insert($table, "(".join(',', array_keys($values)).")", "(".join(',', $values).")", $desc,
1095 1095
 			$serveur);
1096 1096
 	}
1097 1097
 	$couples = join(',', $noprims);
@@ -1110,10 +1110,9 @@  discard block
 block discarded – undo
1110 1110
 		$couples = pg_affected_rows($couples);
1111 1111
 	}
1112 1112
 	if (!$couples) {
1113
-		$ret = !$seq ? '' :
1114
-			(" RETURNING nextval('$seq') < $prim");
1115
-		$connexion['last'] = $q = "INSERT INTO $table (" . join(',', array_keys($values)) . ') VALUES (' . join(',',
1116
-				$values) . ")$ret";
1113
+		$ret = !$seq ? '' : (" RETURNING nextval('$seq') < $prim");
1114
+		$connexion['last'] = $q = "INSERT INTO $table (".join(',', array_keys($values)).') VALUES ('.join(',',
1115
+				$values).")$ret";
1117 1116
 		$couples = spip_pg_query_simple($link, $q);
1118 1117
 		if (!$couples) {
1119 1118
 			return false;
@@ -1161,7 +1160,7 @@  discard block
 block discarded – undo
1161 1160
 	) {
1162 1161
 		return '';
1163 1162
 	} else {
1164
-		return $raw ? $prim : $table . '_' . $prim . "_seq";
1163
+		return $raw ? $prim : $table.'_'.$prim."_seq";
1165 1164
 	}
1166 1165
 }
1167 1166
 
@@ -1179,22 +1178,22 @@  discard block
 block discarded – undo
1179 1178
 			return spip_pg_frommysql($v);
1180 1179
 		} else {
1181 1180
 			if (strncmp($v, '0000', 4) == 0) {
1182
-				$v = "0001" . substr($v, 4);
1181
+				$v = "0001".substr($v, 4);
1183 1182
 			}
1184 1183
 			if (strpos($v, "-00-00") === 4) {
1185
-				$v = substr($v, 0, 4) . "-01-01" . substr($v, 10);
1184
+				$v = substr($v, 0, 4)."-01-01".substr($v, 10);
1186 1185
 			}
1187 1186
 
1188 1187
 			return "timestamp '$v'";
1189 1188
 		}
1190 1189
 	} elseif (!sql_test_int($t)) {
1191
-		return ("'" . pg_escape_string($v) . "'");
1190
+		return ("'".pg_escape_string($v)."'");
1192 1191
 	} elseif (is_numeric($v) or (strpos($v, 'CAST(') === 0)) {
1193 1192
 		return $v;
1194 1193
 	} elseif ($v[0] == '0' and $v[1] !== 'x' and ctype_xdigit(substr($v, 1))) {
1195 1194
 		return substr($v, 1);
1196 1195
 	} else {
1197
-		spip_log("Warning: '$v'  n'est pas de type $t", 'pg.' . _LOG_AVERTISSEMENT);
1196
+		spip_log("Warning: '$v'  n'est pas de type $t", 'pg.'._LOG_AVERTISSEMENT);
1198 1197
 
1199 1198
 		return intval($v);
1200 1199
 	}
@@ -1202,7 +1201,7 @@  discard block
 block discarded – undo
1202 1201
 
1203 1202
 // http://code.spip.net/@spip_pg_hex
1204 1203
 function spip_pg_hex($v) {
1205
-	return "CAST(x'" . $v . "' as bigint)";
1204
+	return "CAST(x'".$v."' as bigint)";
1206 1205
 }
1207 1206
 
1208 1207
 function spip_pg_quote($v, $type = '') {
@@ -1241,15 +1240,15 @@  discard block
 block discarded – undo
1241 1240
 		return $not ? '0=0' : '0=1';
1242 1241
 	}
1243 1242
 	if (strpos($valeurs, "CAST(x'") !== false) {
1244
-		return "($val=" . join("OR $val=", explode(',', $valeurs)) . ')';
1243
+		return "($val=".join("OR $val=", explode(',', $valeurs)).')';
1245 1244
 	}
1246 1245
 	$n = $i = 0;
1247 1246
 	$in_sql = "";
1248 1247
 	while ($n = strpos($valeurs, ',', $n + 1)) {
1249 1248
 		if ((++$i) >= 255) {
1250
-			$in_sql .= "($val $not IN (" .
1251
-				substr($valeurs, 0, $n) .
1252
-				"))\n" .
1249
+			$in_sql .= "($val $not IN (".
1250
+				substr($valeurs, 0, $n).
1251
+				"))\n".
1253 1252
 				($not ? "AND\t" : "OR\t");
1254 1253
 			$valeurs = substr($valeurs, $n + 1);
1255 1254
 			$i = $n = 0;
@@ -1266,7 +1265,7 @@  discard block
 block discarded – undo
1266 1265
 	$s = $link ? pg_last_error($link) : pg_last_error();
1267 1266
 	if ($s) {
1268 1267
 		$s = str_replace('ERROR', 'errcode: 1000 ', $s);
1269
-		spip_log("$s - $query", 'pg.' . _LOG_ERREUR);
1268
+		spip_log("$s - $query", 'pg.'._LOG_ERREUR);
1270 1269
 	}
1271 1270
 
1272 1271
 	return $s;
@@ -1317,7 +1316,7 @@  discard block
 block discarded – undo
1317 1316
 function spip_pg_showbase($match, $serveur = '', $requeter = true) {
1318 1317
 	$connexion = &$GLOBALS['connexions'][$serveur ? strtolower($serveur) : 0];
1319 1318
 	$link = $connexion['link'];
1320
-	$connexion['last'] = $q = "SELECT tablename FROM pg_tables WHERE tablename ILIKE " . _q($match);
1319
+	$connexion['last'] = $q = "SELECT tablename FROM pg_tables WHERE tablename ILIKE "._q($match);
1321 1320
 
1322 1321
 	return spip_pg_query_simple($link, $q);
1323 1322
 }
@@ -1326,7 +1325,7 @@  discard block
 block discarded – undo
1326 1325
 function spip_pg_showtable($nom_table, $serveur = '', $requeter = true) {
1327 1326
 	$connexion = &$GLOBALS['connexions'][$serveur ? strtolower($serveur) : 0];
1328 1327
 	$link = $connexion['link'];
1329
-	$connexion['last'] = $q = "SELECT column_name, column_default, data_type FROM information_schema.columns WHERE table_name ILIKE " . _q($nom_table);
1328
+	$connexion['last'] = $q = "SELECT column_name, column_default, data_type FROM information_schema.columns WHERE table_name ILIKE "._q($nom_table);
1330 1329
 
1331 1330
 	$res = spip_pg_query_simple($link, $q);
1332 1331
 	if (!$res) {
@@ -1337,15 +1336,15 @@  discard block
 block discarded – undo
1337 1336
 	// il faut en tenir compte dans le return
1338 1337
 	$fields = array();
1339 1338
 	while ($field = pg_fetch_array($res, null, PGSQL_NUM)) {
1340
-		$fields[$field[0]] = $field[2] . (!$field[1] ? '' : (" DEFAULT " . $field[1]));
1339
+		$fields[$field[0]] = $field[2].(!$field[1] ? '' : (" DEFAULT ".$field[1]));
1341 1340
 	}
1342
-	$connexion['last'] = $q = "SELECT indexdef FROM pg_indexes WHERE tablename ILIKE " . _q($nom_table);
1341
+	$connexion['last'] = $q = "SELECT indexdef FROM pg_indexes WHERE tablename ILIKE "._q($nom_table);
1343 1342
 	$res = spip_pg_query_simple($link, $q);
1344 1343
 	$keys = array();
1345 1344
 	while ($index = pg_fetch_array($res, null, PGSQL_NUM)) {
1346 1345
 		if (preg_match('/CREATE\s+(UNIQUE\s+)?INDEX\s([^\s]+).*\((.*)\)$/', $index[0], $r)) {
1347
-			$nom = str_replace($nom_table . '_', '', $r[2]);
1348
-			$keys[($r[1] ? "PRIMARY KEY" : ("KEY " . $nom))] = $r[3];
1346
+			$nom = str_replace($nom_table.'_', '', $r[2]);
1347
+			$keys[($r[1] ? "PRIMARY KEY" : ("KEY ".$nom))] = $r[3];
1349 1348
 		}
1350 1349
 	}
1351 1350
 
@@ -1378,16 +1377,16 @@  discard block
 block discarded – undo
1378 1377
 		if (strpos($k, "KEY ") === 0) {
1379 1378
 			$n = str_replace('`', '', $k);
1380 1379
 			$v = str_replace('`', '"', $v);
1381
-			$i = $nom . preg_replace("/KEY +/", '_', $n);
1380
+			$i = $nom.preg_replace("/KEY +/", '_', $n);
1382 1381
 			if ($k != $n) {
1383 1382
 				$i = "\"$i\"";
1384 1383
 			}
1385 1384
 			$keys[] = "CREATE INDEX $i ON $nom ($v);";
1386 1385
 		} elseif (strpos($k, "UNIQUE ") === 0) {
1387 1386
 			$k = preg_replace("/^UNIQUE +/", '', $k);
1388
-			$prim .= "$s\n\t\tCONSTRAINT " . str_replace('`', '"', $k) . " UNIQUE ($v)";
1387
+			$prim .= "$s\n\t\tCONSTRAINT ".str_replace('`', '"', $k)." UNIQUE ($v)";
1389 1388
 		} else {
1390
-			$prim .= "$s\n\t\t" . str_replace('`', '"', $k) . " ($v)";
1389
+			$prim .= "$s\n\t\t".str_replace('`', '"', $k)." ($v)";
1391 1390
 		}
1392 1391
 		if ($k == "PRIMARY KEY") {
1393 1392
 			$prim_name = $v;
@@ -1398,17 +1397,17 @@  discard block
 block discarded – undo
1398 1397
 
1399 1398
 	$character_set = "";
1400 1399
 	if (@$GLOBALS['meta']['charset_sql_base']) {
1401
-		$character_set .= " CHARACTER SET " . $GLOBALS['meta']['charset_sql_base'];
1400
+		$character_set .= " CHARACTER SET ".$GLOBALS['meta']['charset_sql_base'];
1402 1401
 	}
1403 1402
 	if (@$GLOBALS['meta']['charset_collation_sql_base']) {
1404
-		$character_set .= " COLLATE " . $GLOBALS['meta']['charset_collation_sql_base'];
1403
+		$character_set .= " COLLATE ".$GLOBALS['meta']['charset_collation_sql_base'];
1405 1404
 	}
1406 1405
 
1407 1406
 	foreach ($champs as $k => $v) {
1408 1407
 		$k = str_replace('`', '"', $k);
1409 1408
 		if (preg_match(',([a-z]*\s*(\(\s*[0-9]*\s*\))?(\s*binary)?),i', $v, $defs)) {
1410 1409
 			if (preg_match(',(char|text),i', $defs[1]) and !preg_match(',binary,i', $defs[1])) {
1411
-				$v = $defs[1] . $character_set . ' ' . substr($v, strlen($defs[1]));
1410
+				$v = $defs[1].$character_set.' '.substr($v, strlen($defs[1]));
1412 1411
 			}
1413 1412
 		}
1414 1413
 
@@ -1423,7 +1422,7 @@  discard block
 block discarded – undo
1423 1422
 
1424 1423
 	// En l'absence de "if not exists" en PG, on neutralise les erreurs
1425 1424
 
1426
-	$q = "CREATE $temporary TABLE $nom ($query" . ($prim ? ",$prim" : '') . ")" .
1425
+	$q = "CREATE $temporary TABLE $nom ($query".($prim ? ",$prim" : '').")".
1427 1426
 		($character_set ? " DEFAULT $character_set" : "")
1428 1427
 		. "\n";
1429 1428
 
@@ -1434,7 +1433,7 @@  discard block
 block discarded – undo
1434 1433
 	$r = @pg_query($link, $q);
1435 1434
 
1436 1435
 	if (!$r) {
1437
-		spip_log("Impossible de creer cette table: $q", 'pg.' . _LOG_ERREUR);
1436
+		spip_log("Impossible de creer cette table: $q", 'pg.'._LOG_ERREUR);
1438 1437
 	} else {
1439 1438
 		foreach ($keys as $index) {
1440 1439
 			pg_query($link, $index);
@@ -1458,13 +1457,13 @@  discard block
 block discarded – undo
1458 1457
 	// vue deja presente
1459 1458
 	if (sql_showtable($nom, false, $serveur)) {
1460 1459
 		if ($requeter) {
1461
-			spip_log("Echec creation d'une vue sql ($nom) car celle-ci existe deja (serveur:$serveur)", 'pg.' . _LOG_ERREUR);
1460
+			spip_log("Echec creation d'une vue sql ($nom) car celle-ci existe deja (serveur:$serveur)", 'pg.'._LOG_ERREUR);
1462 1461
 		}
1463 1462
 
1464 1463
 		return false;
1465 1464
 	}
1466 1465
 
1467
-	$query = "CREATE VIEW $nom AS " . $query_select;
1466
+	$query = "CREATE VIEW $nom AS ".$query_select;
1468 1467
 
1469 1468
 	return spip_pg_query($query, $serveur, $requeter);
1470 1469
 }
@@ -1472,7 +1471,7 @@  discard block
 block discarded – undo
1472 1471
 
1473 1472
 // http://code.spip.net/@spip_pg_set_connect_charset
1474 1473
 function spip_pg_set_connect_charset($charset, $serveur = '', $requeter = true) {
1475
-	spip_log("changement de charset sql a ecrire en PG", 'pg.' . _LOG_ERREUR);
1474
+	spip_log("changement de charset sql a ecrire en PG", 'pg.'._LOG_ERREUR);
1476 1475
 }
1477 1476
 
1478 1477
 
@@ -1486,7 +1485,7 @@  discard block
 block discarded – undo
1486 1485
  **/
1487 1486
 // http://code.spip.net/@spip_sqlite_optimize
1488 1487
 function spip_pg_optimize($table, $serveur = '', $requeter = true) {
1489
-	return spip_pg_query("VACUUM " . $table, $serveur, $requeter);
1488
+	return spip_pg_query("VACUUM ".$table, $serveur, $requeter);
1490 1489
 }
1491 1490
 
1492 1491
 // Selectionner la sous-chaine dans $objet
Please login to merge, or discard this patch.
ecrire/req/sqlite_fonctions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
 
259 259
 // http://code.spip.net/@_sqlite_func_preg_replace
260 260
 function _sqlite_func_preg_replace($quoi, $cherche, $remplace) {
261
-	$return = preg_replace('%' . $cherche . '%', $remplace, $quoi);
261
+	$return = preg_replace('%'.$cherche.'%', $remplace, $quoi);
262 262
 
263 263
 	#spip_log("preg_replace : $quoi, $cherche, $remplace, $return",'sqlite.'._LOG_DEBUG);
264 264
 	return $return;
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 		return false;
315 315
 	}
316 316
 	$u = isset($GLOBALS['meta']['pcre_u']) ? $GLOBALS['meta']['pcre_u'] : 'u';
317
-	$return = preg_match('%' . $cherche . '%imsS' . $u, $quoi);
317
+	$return = preg_match('%'.$cherche.'%imsS'.$u, $quoi);
318 318
 
319 319
 	#spip_log("regexp_replace : $quoi, $cherche, $remplace, $return",'sqlite.'._LOG_DEBUG);
320 320
 	return $return;
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
  */
336 336
 function _sqlite_func_to_days($d) {
337 337
 	static $offset = 719528; // nb de jour entre 0000-00-00 et timestamp 0=1970-01-01
338
-	$result = $offset + (int)ceil(_sqlite_func_unix_timestamp($d) / (24 * 3600));
338
+	$result = $offset + (int) ceil(_sqlite_func_unix_timestamp($d) / (24 * 3600));
339 339
 
340 340
 	#spip_log("Passage avec TO_DAYS : $d, $result",'sqlite.'._LOG_DEBUG);
341 341
 	return $result;
Please login to merge, or discard this patch.
ecrire/action/calculer_taille_cache.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,16 +42,16 @@
 block discarded – undo
42 42
 		$res = _T('ecrire:taille_cache_image',
43 43
 			array(
44 44
 				'dir' => joli_repertoire(_DIR_VAR),
45
-				'taille' => "<b>" . (taille_en_octets($taille) > 0 ? taille_en_octets($taille) : "0 octet") . "</b>"
45
+				'taille' => "<b>".(taille_en_octets($taille) > 0 ? taille_en_octets($taille) : "0 octet")."</b>"
46 46
 			)
47 47
 		);
48 48
 	} else {
49 49
 		include_spip('inc/invalideur');
50 50
 		$taille =
51 51
 			calculer_taille_dossier(_DIR_CACHE_XML)
52
-			+ calculer_taille_dossier(_DIR_CACHE . 'skel/')
53
-			+ calculer_taille_dossier(_DIR_CACHE . 'wheels/')
54
-			+ calculer_taille_dossier(_DIR_CACHE . 'contextes/');
52
+			+ calculer_taille_dossier(_DIR_CACHE.'skel/')
53
+			+ calculer_taille_dossier(_DIR_CACHE.'wheels/')
54
+			+ calculer_taille_dossier(_DIR_CACHE.'contextes/');
55 55
 		$taille += intval(taille_du_cache());
56 56
 		if ($taille <= 150000) {
57 57
 			$res = _T('taille_cache_vide');
Please login to merge, or discard this patch.
ecrire/action/tester_taille.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 		$t = ($GLOBALS['taille_min'] * $GLOBALS['taille_min']);
77 77
 		if ($GLOBALS['taille_min'] !== $GLOBALS['taille_max']) {
78 78
 			$t = $t * 0.9; // marge de securite
79
-			echo round($t / 1000000, 3) . ' Mpx';
79
+			echo round($t / 1000000, 3).' Mpx';
80 80
 		} else {
81 81
 			// c'est un cas "on a reussi la borne max initiale, donc on a pas de limite connue"
82 82
 			$t = 0;
@@ -111,18 +111,18 @@  discard block
 block discarded – undo
111 111
 	$i = _request('i') + 1;
112 112
 	$image_source = chemin_image("test.png");
113 113
 	$GLOBALS['redirect'] = generer_url_action("tester_taille",
114
-		"i=$i&arg=" . $GLOBALS['taille_min'] . "-" . $GLOBALS['taille_test']);
114
+		"i=$i&arg=".$GLOBALS['taille_min']."-".$GLOBALS['taille_test']);
115 115
 
116 116
 	ob_start('action_tester_taille_error_handler');
117 117
 	filtrer('image_recadre', $image_source, $taille, $taille);
118
-	$GLOBALS['redirect'] = generer_url_action("tester_taille", "i=$i&arg=$taille-" . $GLOBALS['taille_max']);
118
+	$GLOBALS['redirect'] = generer_url_action("tester_taille", "i=$i&arg=$taille-".$GLOBALS['taille_max']);
119 119
 
120 120
 	// si la valeur intermediaire a reussi, on teste la valeur maxi qui est peut etre sous estimee
121 121
 	// si $GLOBALS['taille_min']==0 (car on est au premier coup)
122 122
 	if ($GLOBALS['taille_min'] == 0) {
123 123
 		$taille = $GLOBALS['taille_max'];
124 124
 		filtrer('image_recadre', $image_source, $taille, $taille);
125
-		$GLOBALS['redirect'] = generer_url_action("tester_taille", "i=$i&arg=$taille-" . $GLOBALS['taille_max']);
125
+		$GLOBALS['redirect'] = generer_url_action("tester_taille", "i=$i&arg=$taille-".$GLOBALS['taille_max']);
126 126
 	}
127 127
 	ob_end_clean();
128 128
 
Please login to merge, or discard this patch.
ecrire/action/editer_article.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	);
107 107
 
108 108
 	// Si l'article est publie, invalider les caches et demander sa reindexation
109
-	$t = sql_getfetsel("statut", "spip_articles", "id_article=" . intval($id_article));
109
+	$t = sql_getfetsel("statut", "spip_articles", "id_article=".intval($id_article));
110 110
 	$invalideur = $indexation = false;
111 111
 	if ($t == 'publie') {
112 112
 		$invalideur = "id='article/$id_article'";
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 	if ($err = objet_modifier_champs('article', $id_article,
117 117
 		array(
118 118
 			'data' => $set,
119
-			'nonvide' => array('titre' => _T('info_nouvel_article') . " " . _T('info_numero_abbreviation') . $id_article),
119
+			'nonvide' => array('titre' => _T('info_nouvel_article')." "._T('info_numero_abbreviation').$id_article),
120 120
 			'invalideur' => $invalideur,
121 121
 			'indexation' => $indexation,
122 122
 			'date_modif' => 'date_modif' // champ a mettre a date('Y-m-d H:i:s') s'il y a modif
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 			if (autoriser('modifier', 'article', $id_article) and $s != 'publie') {
299 299
 				$statut = $champs['statut'] = $s;
300 300
 			} else {
301
-				spip_log("editer_article $id_article refus " . join(' ', $c));
301
+				spip_log("editer_article $id_article refus ".join(' ', $c));
302 302
 			}
303 303
 		}
304 304
 
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
 	if (isset($c['id_parent'])
323 323
 		and $id_parent = $c['id_parent']
324 324
 		and $id_parent != $id_rubrique
325
-		and (sql_fetsel('1', "spip_rubriques", "id_rubrique=" . intval($id_parent)))
325
+		and (sql_fetsel('1', "spip_rubriques", "id_rubrique=".intval($id_parent)))
326 326
 	) {
327 327
 		$champs['id_rubrique'] = $id_parent;
328 328
 
@@ -419,12 +419,12 @@  discard block
 block discarded – undo
419 419
 	//  changer aussi son secteur et sa langue (si heritee)
420 420
 	if (isset($champs['id_rubrique'])) {
421 421
 
422
-		$row_rub = sql_fetsel("id_secteur, lang", "spip_rubriques", "id_rubrique=" . sql_quote($champs['id_rubrique']));
422
+		$row_rub = sql_fetsel("id_secteur, lang", "spip_rubriques", "id_rubrique=".sql_quote($champs['id_rubrique']));
423 423
 
424 424
 		$langue = $row_rub['lang'];
425 425
 		$champs['id_secteur'] = $row_rub['id_secteur'];
426 426
 		if (sql_fetsel('1', 'spip_articles',
427
-			"id_article=" . intval($id_article) . " AND langue_choisie<>'oui' AND lang<>" . sql_quote($langue))) {
427
+			"id_article=".intval($id_article)." AND langue_choisie<>'oui' AND lang<>".sql_quote($langue))) {
428 428
 			$champs['lang'] = $langue;
429 429
 		}
430 430
 	}
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
 		return;
434 434
 	}
435 435
 
436
-	sql_updateq('spip_articles', $champs, "id_article=" . intval($id_article));
436
+	sql_updateq('spip_articles', $champs, "id_article=".intval($id_article));
437 437
 
438 438
 	// Changer le statut des rubriques concernees 
439 439
 
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 		foreach ($plus as $n => $t) {
455 455
 			$plus[$n] = preg_replace(",<!--SPIP-->[\n\r]*,", "", $t);
456 456
 		}
457
-		set_request('texte', join('', $plus) . _request('texte'));
457
+		set_request('texte', join('', $plus)._request('texte'));
458 458
 	}
459 459
 }
460 460
 
Please login to merge, or discard this patch.
ecrire/action/session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 	) {
38 38
 		if ($_SERVER['REQUEST_METHOD'] == 'POST') {
39 39
 			include_spip('inc/session');
40
-			session_set('session_' . $var, $val = _request('val'));
40
+			session_set('session_'.$var, $val = _request('val'));
41 41
 			#spip_log("autosave:$var:$val",'autosave');
42 42
 		}
43 43
 	}
Please login to merge, or discard this patch.
ecrire/action/instituer_langue_objet.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
  * @param string $serveur
31 31
  * @return string
32 32
  */
33
-function action_instituer_langue_objet_dist($objet, $id, $id_rubrique, $changer_lang, $serveur='') {
33
+function action_instituer_langue_objet_dist($objet, $id, $id_rubrique, $changer_lang, $serveur = '') {
34 34
 	if ($changer_lang) {
35 35
 		$table_objet_sql = table_objet_sql($objet);
36 36
 		$id_table_objet = id_table_objet($objet);
@@ -38,13 +38,13 @@  discard block
 block discarded – undo
38 38
 		$desc = $trouver_table($table_objet_sql, $serveur);
39 39
 		
40 40
 		$set = array();
41
-		if (isset($desc['field']['langue_choisie'])){
41
+		if (isset($desc['field']['langue_choisie'])) {
42 42
 			$set['langue_choisie'] = 'oui';
43 43
 		}
44 44
 		
45 45
 		if ($changer_lang != "herit") {
46 46
 			$set['lang'] = $changer_lang;
47
-			sql_updateq($table_objet_sql, $set, "$id_table_objet=" . intval($id),'',$serveur);
47
+			sql_updateq($table_objet_sql, $set, "$id_table_objet=".intval($id), '', $serveur);
48 48
 			include_spip('inc/rubriques'); // pour calculer_langues_rubriques et calculer_langues_utilisees
49 49
 			if ($table_objet_sql == 'spip_rubriques') {
50 50
 				calculer_langues_rubriques();
@@ -52,16 +52,16 @@  discard block
 block discarded – undo
52 52
 			$langues = calculer_langues_utilisees($serveur);
53 53
 			ecrire_meta('langues_utilisees', $langues);
54 54
 		} else {
55
-			$langue_parent = sql_getfetsel("lang", "spip_rubriques", "id_rubrique=" . intval($id_rubrique));
55
+			$langue_parent = sql_getfetsel("lang", "spip_rubriques", "id_rubrique=".intval($id_rubrique));
56 56
 			if (!$langue_parent) {
57 57
 				$langue_parent = $GLOBALS['meta']['langue_site'];
58 58
 			}
59 59
 			$changer_lang = $langue_parent;
60 60
 			$set['lang'] = $changer_lang;
61
-			if (isset($set['langue_choisie'])){
61
+			if (isset($set['langue_choisie'])) {
62 62
 				$set['langue_choisie'] = 'non';
63 63
 			}
64
-			sql_updateq($table_objet_sql, $set, "$id_table_objet=" . intval($id),'',$serveur);
64
+			sql_updateq($table_objet_sql, $set, "$id_table_objet=".intval($id), '', $serveur);
65 65
 			if ($table_objet_sql == 'spip_rubriques') {
66 66
 				include_spip('inc/rubriques');
67 67
 				calculer_langues_rubriques();
Please login to merge, or discard this patch.
ecrire/action/logout.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 			ask_php_auth(_T('login_deconnexion_ok'),
85 85
 				_T('login_verifiez_navigateur'),
86 86
 				_T('login_retour_public'),
87
-				"redirect=" . _DIR_RESTREINT_ABS,
87
+				"redirect="._DIR_RESTREINT_ABS,
88 88
 				_T('login_test_navigateur'),
89 89
 				true);
90 90
 
Please login to merge, or discard this patch.