@@ -52,17 +52,17 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | if ($compil_info) { |
| 54 | 54 | return [ |
| 55 | - $trace[0]['file'],// sourcefile |
|
| 55 | + $trace[0]['file'], // sourcefile |
|
| 56 | 56 | '', //nom |
| 57 | - (isset($trace[1]) ? $trace[1]['function'] . "(){\n" : '') |
|
| 58 | - . $trace[0]['function'] . '();' |
|
| 57 | + (isset($trace[1]) ? $trace[1]['function']."(){\n" : '') |
|
| 58 | + . $trace[0]['function'].'();' |
|
| 59 | 59 | . (isset($trace[1]) ? "\n}" : ''), //id_boucle |
| 60 | 60 | $trace[0]['line'], // ligne |
| 61 | 61 | $GLOBALS['spip_lang'], // lang |
| 62 | 62 | ]; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - $message = count($trace) ? $trace[0]['file'] . ' L' . $trace[0]['line'] : ''; |
|
| 65 | + $message = count($trace) ? $trace[0]['file'].' L'.$trace[0]['line'] : ''; |
|
| 66 | 66 | $f = []; |
| 67 | 67 | while (count($trace) && ($t = array_shift($trace))) { |
| 68 | 68 | if (in_array($t['function'], ['include_once', 'include_spip', 'find_in_path'])) { |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $f[] = $t['function']; |
| 72 | 72 | } |
| 73 | 73 | if ($f !== []) { |
| 74 | - $message .= ' [' . implode('(),', $f) . '()]'; |
|
| 74 | + $message .= ' ['.implode('(),', $f).'()]'; |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | return $message; |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | // le debug, c'est pour ce qui a ete produit par le compilateur |
| 265 | 265 | if (isset($GLOBALS['debug']['aucasou'])) { |
| 266 | 266 | [$table, $id, ] = $GLOBALS['debug']['aucasou']; |
| 267 | - $nom = $GLOBALS['debug_objets']['courant'] . $id; |
|
| 267 | + $nom = $GLOBALS['debug_objets']['courant'].$id; |
|
| 268 | 268 | $GLOBALS['debug_objets']['requete'][$nom] = $query; |
| 269 | 269 | } |
| 270 | 270 | $res = $f($select, $from, $where, $groupby, $orderby, $limit, $having, $serveur, true); |
@@ -1141,7 +1141,7 @@ discard block |
||
| 1141 | 1141 | // la globale n'est remplie qu'apres l'appel de sql_serveur. |
| 1142 | 1142 | if ($spip == null) { |
| 1143 | 1143 | $connexion = $GLOBALS['connexions'][$serveur ? strtolower($serveur) : 0]; |
| 1144 | - $spip = $connexion['prefixe'] . '\_%'; |
|
| 1144 | + $spip = $connexion['prefixe'].'\_%'; |
|
| 1145 | 1145 | } |
| 1146 | 1146 | |
| 1147 | 1147 | return $f($spip, $serveur, $option !== false); |
@@ -2298,9 +2298,9 @@ discard block |
||
| 2298 | 2298 | $jour = 0; |
| 2299 | 2299 | } |
| 2300 | 2300 | |
| 2301 | - return sprintf('%04u', $annee) . '-' . sprintf('%02u', $mois) . '-' |
|
| 2302 | - . sprintf('%02u', $jour) . ' ' . sprintf('%02u', $h) . ':' |
|
| 2303 | - . sprintf('%02u', $m) . ':' . sprintf('%02u', $s); |
|
| 2301 | + return sprintf('%04u', $annee).'-'.sprintf('%02u', $mois).'-' |
|
| 2302 | + . sprintf('%02u', $jour).' '.sprintf('%02u', $h).':' |
|
| 2303 | + . sprintf('%02u', $m).':'.sprintf('%02u', $s); |
|
| 2304 | 2304 | } |
| 2305 | 2305 | |
| 2306 | 2306 | |
@@ -2362,7 +2362,7 @@ discard block |
||
| 2362 | 2362 | */ |
| 2363 | 2363 | function prefixer_table_spip($table, $prefixe) { |
| 2364 | 2364 | if ($prefixe) { |
| 2365 | - $table = preg_replace('/^spip_/', $prefixe . '_', $table); |
|
| 2365 | + $table = preg_replace('/^spip_/', $prefixe.'_', $table); |
|
| 2366 | 2366 | } |
| 2367 | 2367 | return $table; |
| 2368 | 2368 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | . ' <b>' |
| 57 | 57 | . $pere |
| 58 | 58 | . '</b>' |
| 59 | - . ($bons_peres ? '<p style="font-size: 80%"> ' . _T('zxml_mais_de') . ' <b>' . $bons_peres . '</b></p>' : '')); |
|
| 59 | + . ($bons_peres ? '<p style="font-size: 80%"> '._T('zxml_mais_de').' <b>'.$bons_peres.'</b></p>' : '')); |
|
| 60 | 60 | } elseif ($this->dtc->regles[$pere][0] == '/') { |
| 61 | 61 | $frat = substr((string) $depth, 2); |
| 62 | 62 | if (!isset($this->fratrie[$frat])) { |
@@ -92,15 +92,15 @@ discard block |
||
| 92 | 92 | if (!isset($a[$name])) { |
| 93 | 93 | $bons = implode(', ', array_keys($a)); |
| 94 | 94 | if ($bons) { |
| 95 | - $bons = " title=' " . |
|
| 96 | - _T('zxml_connus_attributs') . |
|
| 97 | - ' : ' . |
|
| 98 | - $bons . |
|
| 95 | + $bons = " title=' ". |
|
| 96 | + _T('zxml_connus_attributs'). |
|
| 97 | + ' : '. |
|
| 98 | + $bons. |
|
| 99 | 99 | "'"; |
| 100 | 100 | } |
| 101 | 101 | $bons .= " style='font-weight: bold'"; |
| 102 | 102 | coordonnees_erreur($this, " <b>$name</b> " |
| 103 | - . _T('zxml_inconnu_attribut') . ' ' . _T('zxml_de') |
|
| 103 | + . _T('zxml_inconnu_attribut').' '._T('zxml_de') |
|
| 104 | 104 | . " <a$bons>$bal</a> (" |
| 105 | 105 | . _T('zxml_survoler') |
| 106 | 106 | . ')'); |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | if (!preg_match('/^\w+$/', (string) $type)) { |
| 110 | 110 | $this->valider_motif($phraseur, $name, $val, $bal, $type); |
| 111 | 111 | } else { |
| 112 | - if (method_exists($this, $f = 'validerAttribut_' . $type)) { |
|
| 112 | + if (method_exists($this, $f = 'validerAttribut_'.$type)) { |
|
| 113 | 113 | $this->$f($phraseur, $name, $val, $bal); |
| 114 | 114 | } |
| 115 | 115 | } |
@@ -158,13 +158,13 @@ discard block |
||
| 158 | 158 | . " <b>$bal</b> " |
| 159 | 159 | . _T('zxml_non_conforme') |
| 160 | 160 | . '</p><p>' |
| 161 | - . '<b>' . $motif . '</b>'); |
|
| 161 | + . '<b>'.$motif.'</b>'); |
|
| 162 | 162 | } |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | public function valider_idref($nom, $ligne, $col) { |
| 166 | 166 | if (!isset($this->ids[$nom])) { |
| 167 | - $this->err[] = [" <p><b>$nom</b> " . _T('zxml_inconnu_id'), $ligne, $col]; |
|
| 167 | + $this->err[] = [" <p><b>$nom</b> "._T('zxml_inconnu_id'), $ligne, $col]; |
|
| 168 | 168 | } |
| 169 | 169 | } |
| 170 | 170 | |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | // controler que les balises devant etre vides le sont |
| 212 | 212 | if ($vide) { |
| 213 | 213 | if ($n != $k + $c) { |
| 214 | - coordonnees_erreur($this, " <p><b>$name</b> " . _T('zxml_nonvide_balise')); |
|
| 214 | + coordonnees_erreur($this, " <p><b>$name</b> "._T('zxml_nonvide_balise')); |
|
| 215 | 215 | } |
| 216 | 216 | // pour les regles PCDATA ou iteration de disjonction, tout est fait |
| 217 | 217 | } elseif ($regle && $regle != '*') { |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | $d = $this->ouvrant[$d]; |
| 247 | 247 | preg_match('/^\s*(\S+)/', (string) $d, $m); |
| 248 | 248 | if (isset($this->dtc->pcdata[$m[1]]) && $this->dtc->pcdata[$m[1]]) { |
| 249 | - coordonnees_erreur($this, ' <p><b>' . $m[1] . '</b> ' |
|
| 249 | + coordonnees_erreur($this, ' <p><b>'.$m[1].'</b> ' |
|
| 250 | 250 | . _T('zxml_nonvide_balise')); // message a affiner |
| 251 | 251 | } |
| 252 | 252 | } |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | public function phraserTout($phraseur, $data) { |
| 291 | 291 | xml_parsestring($this, $data); |
| 292 | 292 | |
| 293 | - if (!$this->dtc || preg_match(',^' . _MESSAGE_DOCTYPE . ',', (string) $data)) { |
|
| 293 | + if (!$this->dtc || preg_match(',^'._MESSAGE_DOCTYPE.',', (string) $data)) { |
|
| 294 | 294 | $this->err[] = ['DOCTYPE ?', 0, 0]; |
| 295 | 295 | } else { |
| 296 | 296 | $this->valider_passe2(); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | . '</b><p> ' |
| 44 | 44 | . _T( |
| 45 | 45 | 'texte_nouvelle_version_spip_2', |
| 46 | - ['connect' => '<tt>' . _FILE_CONNECT . '</tt>'] |
|
| 46 | + ['connect' => '<tt>'._FILE_CONNECT.'</tt>'] |
|
| 47 | 47 | ) |
| 48 | 48 | . generer_form_ecrire( |
| 49 | 49 | 'upgrade', |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | $commentaire = _T('texte_mise_a_niveau_base_1'); |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | - $commentaire .= '<br />[' . $GLOBALS['meta']['version_installee'] . '/' . $GLOBALS['spip_version_base'] . ']'; |
|
| 81 | + $commentaire .= '<br />['.$GLOBALS['meta']['version_installee'].'/'.$GLOBALS['spip_version_base'].']'; |
|
| 82 | 82 | |
| 83 | 83 | $_POST['reinstall'] = 'non'; // pour copy_request dans admin |
| 84 | 84 | include_spip('inc/headers'); |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | |
| 27 | 27 | $fond = _request('exec'); |
| 28 | -$GLOBALS['delais'] = 0;// pas de cache ! |
|
| 28 | +$GLOBALS['delais'] = 0; // pas de cache ! |
|
| 29 | 29 | // Securite |
| 30 | 30 | if (strstr((string) $fond, '/')) { |
| 31 | 31 | if ( |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | include_spip('inc/minipres'); |
| 26 | 26 | echo minipres(); |
| 27 | 27 | } else { |
| 28 | - $plug = _DIR_RACINE . htmlspecialchars((string) _request('plugin')); |
|
| 28 | + $plug = _DIR_RACINE.htmlspecialchars((string) _request('plugin')); |
|
| 29 | 29 | $get_infos = charger_fonction('get_infos', 'plugins'); |
| 30 | 30 | $dir = ''; |
| 31 | 31 | if (str_starts_with($plug, (string) _DIR_PLUGINS)) { |
@@ -63,15 +63,15 @@ discard block |
||
| 63 | 63 | $where = preg_split(',\s+,', $type); |
| 64 | 64 | if ($where) { |
| 65 | 65 | foreach ($where as $k => $v) { |
| 66 | - $where[$k] = "'%" . substr(str_replace('%', '\%', sql_quote($v, '', 'string')), 1, -1) . "%'"; |
|
| 66 | + $where[$k] = "'%".substr(str_replace('%', '\%', sql_quote($v, '', 'string')), 1, -1)."%'"; |
|
| 67 | 67 | } |
| 68 | - $where_titre = ('(titre LIKE ' . implode(' AND titre LIKE ', $where) . ')'); |
|
| 69 | - $where_desc = ('(descriptif LIKE ' . implode(' AND descriptif LIKE ', $where) . ')'); |
|
| 70 | - $where_id = ('(id_rubrique = ' . (int) $type . ')'); |
|
| 68 | + $where_titre = ('(titre LIKE '.implode(' AND titre LIKE ', $where).')'); |
|
| 69 | + $where_desc = ('(descriptif LIKE '.implode(' AND descriptif LIKE ', $where).')'); |
|
| 70 | + $where_id = ('(id_rubrique = '.(int) $type.')'); |
|
| 71 | 71 | |
| 72 | 72 | if ($exclus) { |
| 73 | 73 | include_spip('inc/rubriques'); |
| 74 | - $where_exclus = ' AND ' . sql_in('id_rubrique', calcul_branche_in($exclus), 'NOT'); |
|
| 74 | + $where_exclus = ' AND '.sql_in('id_rubrique', calcul_branche_in($exclus), 'NOT'); |
|
| 75 | 75 | } else { |
| 76 | 76 | $where_exclus = ''; |
| 77 | 77 | } |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | |
| 102 | 102 | if ($points) { |
| 103 | 103 | arsort($points); |
| 104 | - $style = " style='background-image: url(" . chemin_image('secteur-12.png') . ")'"; |
|
| 104 | + $style = " style='background-image: url(".chemin_image('secteur-12.png').")'"; |
|
| 105 | 105 | foreach ($rub as $k => $v) { |
| 106 | 106 | $rub[$k]['atts'] = ($v['id_parent'] ? $style : '') |
| 107 | 107 | . " class='petite-rubrique'"; |
@@ -134,13 +134,13 @@ discard block |
||
| 134 | 134 | if (!$ids) { |
| 135 | 135 | return "<br /><br /><div style='padding: 5px; color: red;'><b>" |
| 136 | 136 | . spip_htmlentities($type) |
| 137 | - . '</b> : ' . _T('avis_aucun_resultat') . '</div>'; |
|
| 137 | + . '</b> : '._T('avis_aucun_resultat').'</div>'; |
|
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | $ret = ''; |
| 141 | 141 | $info = generer_url_ecrire('informer', "type=rubrique&rac=$rac&id="); |
| 142 | 142 | |
| 143 | - $onClick = "aff_selection(this.firstChild.title,'$rac" . "_selection','$info', event)"; |
|
| 143 | + $onClick = "aff_selection(this.firstChild.title,'$rac"."_selection','$info', event)"; |
|
| 144 | 144 | |
| 145 | 145 | $ondbClick = "$do(this.firstChild.firstChild.nodeValue,this.firstChild.title,'selection_rubrique', 'id_parent');"; |
| 146 | 146 | |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | |
| 120 | 120 | // message d'erreur au retour d'une operation |
| 121 | 121 | if ($erreur) { |
| 122 | - echo "<div class='error'>" . spip_htmlspecialchars($erreur) . '</div>'; |
|
| 122 | + echo "<div class='error'>".spip_htmlspecialchars($erreur).'</div>'; |
|
| 123 | 123 | } |
| 124 | 124 | if ($erreur_activation) { |
| 125 | 125 | echo "<div class='error'>$erreur_activation</div>"; |
@@ -146,11 +146,11 @@ discard block |
||
| 146 | 146 | if ($quoi !== 'actifs') { |
| 147 | 147 | $lpf = liste_plugin_files(); |
| 148 | 148 | if ($lpf) { |
| 149 | - echo '<p>' . _T('texte_presente_plugin') . '</p>'; |
|
| 149 | + echo '<p>'._T('texte_presente_plugin').'</p>'; |
|
| 150 | 150 | } else { |
| 151 | 151 | if (!@is_dir(_DIR_PLUGINS)) { |
| 152 | - echo '<p>' . _T('plugin_info_automatique_ftp', ['rep' => joli_repertoire(_DIR_PLUGINS)]) |
|
| 153 | - . ' — ' . _T('plugin_info_automatique_creer') . '</p>'; |
|
| 152 | + echo '<p>'._T('plugin_info_automatique_ftp', ['rep' => joli_repertoire(_DIR_PLUGINS)]) |
|
| 153 | + . ' — '._T('plugin_info_automatique_creer').'</p>'; |
|
| 154 | 154 | } |
| 155 | 155 | } |
| 156 | 156 | $lcpaffiche = $lpf; |
@@ -171,10 +171,10 @@ discard block |
||
| 171 | 171 | if (defined('_DIR_PLUGINS_SUPPL')) { |
| 172 | 172 | $nb += is_countable($lcpas) ? count($lcpas) : 0; |
| 173 | 173 | } |
| 174 | - echo '<h3>' . sinon( |
|
| 174 | + echo '<h3>'.sinon( |
|
| 175 | 175 | singulier_ou_pluriel($nb, 'plugins_actif_un', 'plugins_actifs', 'count'), |
| 176 | 176 | _T('plugins_actif_aucun') |
| 177 | - ) . '</h3>'; |
|
| 177 | + ).'</h3>'; |
|
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | if (empty($format)) { |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | |
| 192 | 192 | if ($corps) { |
| 193 | 193 | $corps .= "\n<div class='boutons' style='display:none;'>" |
| 194 | - . "<input type='submit' class='submit save' value='" . _T('bouton_enregistrer') |
|
| 194 | + . "<input type='submit' class='submit save' value='"._T('bouton_enregistrer') |
|
| 195 | 195 | . "' />" |
| 196 | 196 | . '</div>'; |
| 197 | 197 | } |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | . debut_cadre_trait_couleur('', true, '', _T('plugins_liste_dist'), 'liste_plugins_dist') |
| 266 | 266 | . '<p>' |
| 267 | 267 | . _T('plugin_info_plugins_dist_1', ['plugins_dist' => joli_repertoire(_DIR_PLUGINS_DIST)]) |
| 268 | - . '<br />' . _T('plugin_info_plugins_dist_2') |
|
| 268 | + . '<br />'._T('plugin_info_plugins_dist_2') |
|
| 269 | 269 | . '</p>' |
| 270 | 270 | . $liste |
| 271 | 271 | . fin_cadre_trait_couleur() |
@@ -288,11 +288,11 @@ discard block |
||
| 288 | 288 | $res = debut_cadre_enfonce('', true, '', _T('plugin_librairies_installees')); |
| 289 | 289 | $res .= '<dl>'; |
| 290 | 290 | foreach ($libs as $lib => $rep) { |
| 291 | - $res .= "<dt>$lib</dt><dd>" . joli_repertoire($rep) . "</dd>\n"; |
|
| 291 | + $res .= "<dt>$lib</dt><dd>".joli_repertoire($rep)."</dd>\n"; |
|
| 292 | 292 | } |
| 293 | 293 | $res .= '</dl>'; |
| 294 | 294 | |
| 295 | - return $res . fin_cadre_enfonce(); |
|
| 295 | + return $res.fin_cadre_enfonce(); |
|
| 296 | 296 | } |
| 297 | 297 | |
| 298 | 298 | |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | $libs = []; |
| 307 | 307 | foreach (array_reverse(creer_chemin()) as $d) { |
| 308 | 308 | if ( |
| 309 | - is_dir($dir = $d . 'lib/') |
|
| 309 | + is_dir($dir = $d.'lib/') |
|
| 310 | 310 | && ($t = opendir($dir)) |
| 311 | 311 | ) { |
| 312 | 312 | while (($f = readdir($t)) !== false) { |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | if ($changer_lang != 'herit') { |
| 45 | 45 | $set['lang'] = $changer_lang; |
| 46 | - sql_updateq($table_objet_sql, $set, "$id_table_objet=" . (int) $id, [], $serveur); |
|
| 46 | + sql_updateq($table_objet_sql, $set, "$id_table_objet=".(int) $id, [], $serveur); |
|
| 47 | 47 | include_spip('inc/rubriques'); // pour calculer_langues_rubriques et calculer_langues_utilisees |
| 48 | 48 | if ($table_objet_sql == 'spip_rubriques') { |
| 49 | 49 | calculer_langues_rubriques(); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $langues = calculer_langues_utilisees($serveur); |
| 52 | 52 | ecrire_meta('langues_utilisees', $langues); |
| 53 | 53 | } else { |
| 54 | - $langue_parent = sql_getfetsel('lang', 'spip_rubriques', 'id_rubrique=' . (int) $id_rubrique); |
|
| 54 | + $langue_parent = sql_getfetsel('lang', 'spip_rubriques', 'id_rubrique='.(int) $id_rubrique); |
|
| 55 | 55 | if (!$langue_parent) { |
| 56 | 56 | $langue_parent = $GLOBALS['meta']['langue_site']; |
| 57 | 57 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | if (isset($set['langue_choisie'])) { |
| 61 | 61 | $set['langue_choisie'] = 'non'; |
| 62 | 62 | } |
| 63 | - sql_updateq($table_objet_sql, $set, "$id_table_objet=" . (int) $id, [], $serveur); |
|
| 63 | + sql_updateq($table_objet_sql, $set, "$id_table_objet=".(int) $id, [], $serveur); |
|
| 64 | 64 | if ($table_objet_sql == 'spip_rubriques') { |
| 65 | 65 | include_spip('inc/rubriques'); |
| 66 | 66 | calculer_langues_rubriques(); |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | $champs['source'] = $source ?: 'spip'; |
| 92 | 92 | |
| 93 | 93 | $champs['login'] = ''; |
| 94 | - $champs['statut'] = '5poubelle'; // inutilisable tant qu'il n'a pas ete renseigne et institue |
|
| 94 | + $champs['statut'] = '5poubelle'; // inutilisable tant qu'il n'a pas ete renseigne et institue |
|
| 95 | 95 | $champs['webmestre'] = 'non'; |
| 96 | 96 | if (empty($champs['imessage'])) { |
| 97 | 97 | $champs['imessage'] = 'oui'; |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | $champs['pass'] = $c['pass']; |
| 332 | 332 | } |
| 333 | 333 | |
| 334 | - $statut = $statut_ancien = sql_getfetsel('statut', 'spip_auteurs', 'id_auteur=' . (int) $id_auteur); |
|
| 334 | + $statut = $statut_ancien = sql_getfetsel('statut', 'spip_auteurs', 'id_auteur='.(int) $id_auteur); |
|
| 335 | 335 | |
| 336 | 336 | if ( |
| 337 | 337 | isset($c['statut']) && autoriser('modifier', 'auteur', $id_auteur, null, ['statut' => $c['statut']]) |
@@ -390,7 +390,7 @@ discard block |
||
| 390 | 390 | // commencer par traiter les cas particuliers des logins et pass |
| 391 | 391 | // avant les autres ecritures en base |
| 392 | 392 | if (isset($champs['login']) || isset($champs['pass'])) { |
| 393 | - $auth_methode = sql_getfetsel('source', 'spip_auteurs', 'id_auteur=' . (int) $id_auteur); |
|
| 393 | + $auth_methode = sql_getfetsel('source', 'spip_auteurs', 'id_auteur='.(int) $id_auteur); |
|
| 394 | 394 | include_spip('inc/auth'); |
| 395 | 395 | if ( |
| 396 | 396 | isset($champs['login']) |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | $erreurs[] = 'ecrire:impossible_modifier_login_auteur'; |
| 401 | 401 | } |
| 402 | 402 | if (isset($champs['pass']) && strlen((string) $champs['pass'])) { |
| 403 | - $champs['login'] = sql_getfetsel('login', 'spip_auteurs', 'id_auteur=' . (int) $id_auteur); |
|
| 403 | + $champs['login'] = sql_getfetsel('login', 'spip_auteurs', 'id_auteur='.(int) $id_auteur); |
|
| 404 | 404 | if (!auth_modifier_pass($auth_methode, $champs['login'], $champs['pass'], $id_auteur)) { |
| 405 | 405 | $erreurs[] = 'ecrire:impossible_modifier_pass_auteur'; |
| 406 | 406 | } |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | if (!(is_countable($champs) ? count($champs) : 0)) { |
| 414 | 414 | return implode(' ', array_map('_T', $erreurs)); |
| 415 | 415 | } |
| 416 | - sql_updateq('spip_auteurs', $champs, 'id_auteur=' . $id_auteur); |
|
| 416 | + sql_updateq('spip_auteurs', $champs, 'id_auteur='.$id_auteur); |
|
| 417 | 417 | |
| 418 | 418 | // .. mettre a jour les fichiers .htpasswd et .htpasswd-admin |
| 419 | 419 | if ($flag_ecrire_acces || isset($champs['statut'])) { |