Completed
Push — master ( 0528ed...3f7b24 )
by cam
01:54
created
prive/formulaires/editer_logo.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -75,19 +75,19 @@  discard block
 block discarded – undo
75 75
 		}
76 76
 		switch ($objet) {
77 77
 			case 'article':
78
-				$libelle .= ' ' . aider('logoart');
78
+				$libelle .= ' '.aider('logoart');
79 79
 				break;
80 80
 			case 'breve':
81
-				$libelle .= ' ' . aider('breveslogo');
81
+				$libelle .= ' '.aider('breveslogo');
82 82
 				break;
83 83
 			case 'rubrique':
84
-				$libelle .= ' ' . aider('rublogo');
84
+				$libelle .= ' '.aider('rublogo');
85 85
 				break;
86 86
 			default:
87 87
 				break;
88 88
 		}
89 89
 
90
-		$options['titre'] = $img . $libelle;
90
+		$options['titre'] = $img.$libelle;
91 91
 	}
92 92
 	if (!isset($options['editable'])) {
93 93
 		include_spip('inc/autoriser');
@@ -112,8 +112,8 @@  discard block
 block discarded – undo
112 112
 	foreach ($etats as $etat) {
113 113
 		$logo = $chercher_logo($id_objet, $_id_objet, $etat);
114 114
 		if ($logo) {
115
-			$res['logo_' . $etat] = $logo[0];
116
-			$res['logo_id_' . $etat] = $logo[5]['id_document'] ?? '';
115
+			$res['logo_'.$etat] = $logo[0];
116
+			$res['logo_id_'.$etat] = $logo[5]['id_document'] ?? '';
117 117
 		}
118 118
 	}
119 119
 	// pas de logo_on -> pas de formulaire pour le survol
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 					$extensions_possibles
176 176
 				)
177 177
 			) {
178
-				$erreurs['logo_' . $etat] = _L('Extension non reconnue');
178
+				$erreurs['logo_'.$etat] = _L('Extension non reconnue');
179 179
 			}
180 180
 		} elseif ($file && $file['error'] != 0 && isset($file['msg'])) {
181 181
 			$erreurs['message_erreur'] = $file['msg'];
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 	include_spip('inc/documents');
261 261
 	$sources = [];
262 262
 	foreach (['on', 'off'] as $etat) {
263
-		$logo = 'logo_' . $etat;
263
+		$logo = 'logo_'.$etat;
264 264
 		if (isset($_FILES[$logo])) {
265 265
 			if ($_FILES[$logo]['error'] == 0) {
266 266
 				$sources[$etat] = $_FILES[$logo];
Please login to merge, or discard this patch.
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/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.
ecrire/install/etape_ldap3.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 	$checked = false;
45 45
 	$res = '';
46 46
 	if (is_array($info) && $info['count'] > 0) {
47
-		$res .= '<p>' . _T('info_selection_chemin_acces') . '</p>';
47
+		$res .= '<p>'._T('info_selection_chemin_acces').'</p>';
48 48
 		$res .= '<ul>';
49 49
 		$n = 0;
50 50
 		for ($i = 0; $i < $info['count']; $i++) {
@@ -52,18 +52,18 @@  discard block
 block discarded – undo
52 52
 			if (is_array($names)) {
53 53
 				for ($j = 0; $j < $names['count']; $j++) {
54 54
 					$n++;
55
-					$res .= '<li><input name="base_ldap" value="' . spip_htmlspecialchars($names[$j]) . "\" type='radio' id='tab$n'";
55
+					$res .= '<li><input name="base_ldap" value="'.spip_htmlspecialchars($names[$j])."\" type='radio' id='tab$n'";
56 56
 					if (!$checked) {
57 57
 						$res .= ' checked="checked"';
58 58
 						$checked = true;
59 59
 					}
60 60
 					$res .= ' />';
61
-					$res .= "<label for='tab$n'>" . spip_htmlspecialchars($names[$j]) . "</label></li>\n";
61
+					$res .= "<label for='tab$n'>".spip_htmlspecialchars($names[$j])."</label></li>\n";
62 62
 				}
63 63
 			}
64 64
 		}
65 65
 		$res .= '</ul>';
66
-		$res .= _T('info_ou') . ' ';
66
+		$res .= _T('info_ou').' ';
67 67
 	}
68 68
 	$res .= "<br />\n<input name=\"base_ldap\" value=\"\" type='radio' id='manuel'";
69 69
 	if (!$checked) {
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	}
73 73
 
74 74
 	$res .= ' />'
75
-		. "\n<label for='manuel'>" . _T('entree_chemin_acces') . '</label> '
75
+		. "\n<label for='manuel'>"._T('entree_chemin_acces').'</label> '
76 76
 		. "\n<fieldset>"
77 77
 		. "<input type='text' name='base_ldap_text' class='text' value=\"$base_ldap_text\" size='40' />"
78 78
 		. "\n</fieldset>"
Please login to merge, or discard this patch.