Completed
Push — master ( 267cf1...68e811 )
by cam
01:09
created
prive/formulaires/traduire.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 		$id_parent = $valeurs['id_parent'];
60 60
 	}
61 61
 	if ($id_parent) {
62
-		$langue_parent = sql_getfetsel('lang', 'spip_rubriques', 'id_rubrique=' . (int) $id_parent);
62
+		$langue_parent = sql_getfetsel('lang', 'spip_rubriques', 'id_rubrique='.(int) $id_parent);
63 63
 	}
64 64
 
65 65
 	if (!$langue_parent) {
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
 	$valeurs['_traduire'] = '';
83 83
 	if (isset($valeurs['id_trad'])) {
84 84
 		$valeurs['_traduire'] = ($traduire ? ' ' : '');
85
-		$valeurs['_vue_traductions'] = 'prive/objets/liste/' . (trouver_fond(
86
-			$f = table_objet($objet) . '-trad',
85
+		$valeurs['_vue_traductions'] = 'prive/objets/liste/'.(trouver_fond(
86
+			$f = table_objet($objet).'-trad',
87 87
 			'prive/objets/liste'
88 88
 		) ? $f : 'objets-trad');
89 89
 		// pour afficher la liste des trad sur la base de l'id_trad en base
@@ -129,12 +129,12 @@  discard block
 block discarded – undo
129 129
 			sql_getfetsel(
130 130
 				'id_trad',
131 131
 				$table_objet_sql,
132
-				"$_id_table_objet=" . (int) $id_objet
132
+				"$_id_table_objet=".(int) $id_objet
133 133
 			)
134 134
 		) {
135 135
 			// ne devrait jamais arriver sauf concurence de saisie
136 136
 			$erreurs['id_trad'] = _L('Une traduction est deja referencee');
137
-		} elseif (!sql_getfetsel($_id_table_objet, $table_objet_sql, "$_id_table_objet=" . (int) $id_trad)) {
137
+		} elseif (!sql_getfetsel($_id_table_objet, $table_objet_sql, "$_id_table_objet=".(int) $id_trad)) {
138 138
 			$erreurs['id_trad'] = _L('Indiquez un contenu existant');
139 139
 		}
140 140
 	}
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 		) {
173 173
 			$table_objet_sql = table_objet_sql($objet);
174 174
 			$_id_table_objet = id_table_objet($objet);
175
-			if ($id_trad = sql_getfetsel('id_trad', $table_objet_sql, "$_id_table_objet=" . (int) $id_objet)) {
175
+			if ($id_trad = sql_getfetsel('id_trad', $table_objet_sql, "$_id_table_objet=".(int) $id_objet)) {
176 176
 				$referencer_traduction = charger_fonction('referencer_traduction', 'action');
177 177
 				$referencer_traduction($objet, $id_trad, $new_id_trad);
178 178
 			}
Please login to merge, or discard this patch.
prive/formulaires/configurer_previsualiseur.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 	$res = ['editable' => true];
24 24
 
25 25
 	if (($i = _request('preview')) && is_array($i)) {
26
-		$i = ',' . implode(',', $i) . ',';
26
+		$i = ','.implode(',', $i).',';
27 27
 	}
28 28
 
29 29
 	ecrire_meta('preview', $i);
Please login to merge, or discard this patch.
prive/formulaires/configurer_langue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 	foreach ($langues as $l) {
31 31
 		$res .= "<option value='$l'"
32 32
 			. ($l == $l_site ? " selected='selected'" : '')
33
-			. '>' . traduire_nom_langue($l) . "</option>\n";
33
+			. '>'.traduire_nom_langue($l)."</option>\n";
34 34
 	}
35 35
 
36 36
 	return [
Please login to merge, or discard this patch.
prive/formulaires/mot_de_passe.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 		return sql_fetsel(
21 21
 			'*',
22 22
 			'spip_auteurs',
23
-			['id_auteur=' . (int) $id_auteur, "statut<>'5poubelle'", "pass<>''", "login<>''"]
23
+			['id_auteur='.(int) $id_auteur, "statut<>'5poubelle'", "pass<>''", "login<>''"]
24 24
 		);
25 25
 	} elseif ($jeton) {
26 26
 		include_spip('action/inscrire_auteur');
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	if ($auteur) {
60 60
 		$valeurs['id_auteur'] = $id_auteur; // a toutes fins utiles pour le formulaire
61 61
 		if ($jeton) {
62
-			$valeurs['_hidden'] = '<input type="hidden" name="p" value="' . $jeton . '" />';
62
+			$valeurs['_hidden'] = '<input type="hidden" name="p" value="'.$jeton.'" />';
63 63
 		}
64 64
 	} else {
65 65
 		$valeurs['message_erreur'] = _T('pass_erreur_code_inconnu');
@@ -150,8 +150,8 @@  discard block
 block discarded – undo
150 150
 					'id_auteur',
151 151
 					'spip_auteurs',
152 152
 					[
153
-						'(email=' . sql_quote($row['email']) . ' or login=' . sql_quote($row['email']) . ')',
154
-						'id_auteur != ' . $id_auteur
153
+						'(email='.sql_quote($row['email']).' or login='.sql_quote($row['email']).')',
154
+						'id_auteur != '.$id_auteur
155 155
 					],
156 156
 					'',
157 157
 					'',
@@ -164,13 +164,13 @@  discard block
 block discarded – undo
164 164
 			else {
165 165
 				$identifiant = $row['login'];
166 166
 			}
167
-			$res['message_ok'] = '<b>' . _T('pass_nouveau_enregistre') . '</b>' .
168
-				'<br />' . _T('pass_rappel_login', ['login' => $identifiant]);
167
+			$res['message_ok'] = '<b>'._T('pass_nouveau_enregistre').'</b>'.
168
+				'<br />'._T('pass_rappel_login', ['login' => $identifiant]);
169 169
 
170 170
 			include_spip('inc/auth');
171 171
 			$auth = auth_identifier_login($row['login'], $oubli);
172 172
 			if (!is_array($auth)) {
173
-				spip_log('Erreur identification ' . $row['login'] . " après changement de mot de passe: $auth", _LOG_ERREUR);
173
+				spip_log('Erreur identification '.$row['login']." après changement de mot de passe: $auth", _LOG_ERREUR);
174 174
 			}
175 175
 			elseif ($auth['id_auteur'] == $id_auteur) {
176 176
 				auth_loger($auth);
Please login to merge, or discard this patch.
prive/formulaires/inscription.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 				$row = sql_fetsel(
109 109
 					'statut, id_auteur, login, email',
110 110
 					'spip_auteurs',
111
-					'email=' . sql_quote($declaration['email'])
111
+					'email='.sql_quote($declaration['email'])
112 112
 				)
113 113
 			) {
114 114
 				if ($row['statut'] == '5poubelle' && empty($declaration['pass'])) {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 						}
125 125
 					}
126 126
 				}
127
-				spip_log($row['id_auteur'] . ' veut se resinscrire');
127
+				spip_log($row['id_auteur'].' veut se resinscrire');
128 128
 			}
129 129
 		}
130 130
 	}
Please login to merge, or discard this patch.
prive/formulaires/oubli.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 			[
36 36
 				'url_reset' => url_absolue(
37 37
 					generer_url_public('spip_pass', "$param=$cookie"),
38
-					$GLOBALS['meta']['adresse_site'] . '/'
38
+					$GLOBALS['meta']['adresse_site'].'/'
39 39
 				)
40 40
 			]
41 41
 		);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
 		return [
103 103
 			$declaration,
104
-			sql_fetsel('id_auteur,statut,pass', 'spip_auteurs', "login<>'' AND email =" . sql_quote($declaration['mail']))
104
+			sql_fetsel('id_auteur,statut,pass', 'spip_auteurs', "login<>'' AND email =".sql_quote($declaration['mail']))
105 105
 		];
106 106
 	}
107 107
 }
Please login to merge, or discard this patch.
prive/formulaires/rediriger_article.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 		return false;
21 21
 	}
22 22
 
23
-	$row = sql_fetsel('id_article,virtuel', 'spip_articles', 'id_article=' . (int) $id_article);
23
+	$row = sql_fetsel('id_article,virtuel', 'spip_articles', 'id_article='.(int) $id_article);
24 24
 	if (!$row['id_article']) {
25 25
 		return false;
26 26
 	}
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 function formulaires_rediriger_article_verifier_dist($id_article, $retour = '') {
48 48
 	$erreurs = [];
49 49
 
50
-	if (($redirection = _request('redirection')) == $id_article || $redirection == 'art' . $id_article) {
50
+	if (($redirection = _request('redirection')) == $id_article || $redirection == 'art'.$id_article) {
51 51
 		$erreurs['redirection'] = _T('info_redirection_boucle');
52 52
 	}
53 53
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	$js = _AJAX ? '<script type="text/javascript">if (window.ajaxReload) ajaxReload("wysiwyg");</script>' : '';
68 68
 
69 69
 	return [
70
-		'message_ok' => ($url ? _T('info_redirection_activee') : _T('info_redirection_desactivee')) . $js,
70
+		'message_ok' => ($url ? _T('info_redirection_activee') : _T('info_redirection_desactivee')).$js,
71 71
 		'editable' => true
72 72
 	];
73 73
 }
Please login to merge, or discard this patch.
prive/objets/liste/auteurs_fonctions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 		}
96 96
 		if ($memo) {
97 97
 			$on = ($memo['compteur'] <= $debut && ($newcompt > $debut || $newcompt == $debut && $newcompt == $memo['compteur']));
98
-			$res[] = "<li class='pagination-item'>" . lien_ou_expose($memo['url'], $memo['initiale'], $on ? 'span.pagination-item-label' : '', 'pagination-item-label lien_pagination') . '</li>';
98
+			$res[] = "<li class='pagination-item'>".lien_ou_expose($memo['url'], $memo['initiale'], $on ? 'span.pagination-item-label' : '', 'pagination-item-label lien_pagination').'</li>';
99 99
 		}
100 100
 		if ($initiale) {
101 101
 			$memo = [
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 	}
109 109
 	if (!$initiale && !$url) {
110 110
 		if ((is_countable($res) ? count($res) : 0) > 1) {
111
-			$out = "<ul class='pagination-items'>" . implode(' ', $res) . '</ul>';
111
+			$out = "<ul class='pagination-items'>".implode(' ', $res).'</ul>';
112 112
 		}
113 113
 		$memo = null;
114 114
 		$res = [];
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 	) {
150 150
 		return parametre_url(parametre_url(generer_url_ecrire('message_edit', 'new=oui'), 'to', $id_auteur), 'redirect', self());
151 151
 	} elseif (strlen($email) && autoriser('voir', 'auteur', $id_auteur)) {
152
-		return 'mailto:' . $email;
152
+		return 'mailto:'.$email;
153 153
 	} else {
154 154
 		return '';
155 155
 	}
Please login to merge, or discard this patch.
prive/objets/liste/objets-trad_fonctions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@
 block discarded – undo
18 18
 	$primary = id_table_objet($objet);
19 19
 
20 20
 	$select = "$primary as id,lang";
21
-	$where = 'id_trad=' . (int) $id_trad;
21
+	$where = 'id_trad='.(int) $id_trad;
22 22
 	$trouver_table = charger_fonction('trouver_table', 'base');
23 23
 	$desc = $trouver_table($table_objet_sql);
24 24
 	if (isset($desc['field']['statut'])) {
25 25
 		$select .= ',statut';
26
-		$where .= ' AND statut!=' . sql_quote('poubelle');
26
+		$where .= ' AND statut!='.sql_quote('poubelle');
27 27
 	}
28 28
 
29 29
 	$rows = sql_allfetsel($select, $table_objet_sql, $where);
Please login to merge, or discard this patch.