@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | $id_lier = sql_getfetsel( |
| 57 | 57 | 'id_trad', |
| 58 | 58 | $table_objet_sql, |
| 59 | - "$id_table_objet=" . intval($id_trad) . " AND NOT($id_table_objet=" . intval($id_objet) . ')' |
|
| 59 | + "$id_table_objet=".intval($id_trad)." AND NOT($id_table_objet=".intval($id_objet).')' |
|
| 60 | 60 | ); |
| 61 | 61 | if ($id_lier === null) { |
| 62 | 62 | spip_log("echec lien de trad vers objet $objet/$id_objet incorrect ($id_trad)"); |
@@ -75,18 +75,18 @@ discard block |
||
| 75 | 75 | sql_updateq($table_objet_sql, ['id_trad' => $id_trad], "id_trad = $id_lier"); |
| 76 | 76 | } // sinon ajouter notre objet dans le groupe |
| 77 | 77 | else { |
| 78 | - sql_updateq($table_objet_sql, ['id_trad' => $id_lier], "$id_table_objet=" . intval($id_objet)); |
|
| 78 | + sql_updateq($table_objet_sql, ['id_trad' => $id_lier], "$id_table_objet=".intval($id_objet)); |
|
| 79 | 79 | } |
| 80 | 80 | } // on a fourni un id_trad nul : sortir id_objet du groupe de trad |
| 81 | 81 | else { |
| 82 | - $old_id_trad = sql_getfetsel('id_trad', $table_objet_sql, "$id_table_objet=" . intval($id_objet)); |
|
| 82 | + $old_id_trad = sql_getfetsel('id_trad', $table_objet_sql, "$id_table_objet=".intval($id_objet)); |
|
| 83 | 83 | // supprimer le lien de traduction |
| 84 | - sql_updateq($table_objet_sql, ['id_trad' => 0], "$id_table_objet=" . intval($id_objet)); |
|
| 84 | + sql_updateq($table_objet_sql, ['id_trad' => 0], "$id_table_objet=".intval($id_objet)); |
|
| 85 | 85 | |
| 86 | 86 | // Verifier si l'ancien groupe ne comporte plus qu'un seul objet. Alors mettre a zero. |
| 87 | - $cpt = sql_countsel($table_objet_sql, 'id_trad=' . intval($old_id_trad)); |
|
| 87 | + $cpt = sql_countsel($table_objet_sql, 'id_trad='.intval($old_id_trad)); |
|
| 88 | 88 | if ($cpt == 1) { |
| 89 | - sql_updateq($table_objet_sql, ['id_trad' => 0], 'id_trad=' . intval($old_id_trad)); |
|
| 89 | + sql_updateq($table_objet_sql, ['id_trad' => 0], 'id_trad='.intval($old_id_trad)); |
|
| 90 | 90 | } |
| 91 | 91 | } |
| 92 | 92 | |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $redirect = _request('redirect') and !$arg == sql_getfetsel( |
| 43 | 43 | 'email', |
| 44 | 44 | 'spip_auteurs', |
| 45 | - 'id_auteur=' . intval($GLOBALS['visiteur_session']) |
|
| 45 | + 'id_auteur='.intval($GLOBALS['visiteur_session']) |
|
| 46 | 46 | ) |
| 47 | 47 | ) { |
| 48 | 48 | $GLOBALS['redirect'] = parametre_url($redirect, 'email_modif', ''); |
@@ -76,7 +76,7 @@ discard block |
||
| 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; |
@@ -112,19 +112,19 @@ discard block |
||
| 112 | 112 | $image_source = chemin_image('test.png'); |
| 113 | 113 | $GLOBALS['redirect'] = generer_url_action( |
| 114 | 114 | 'tester_taille', |
| 115 | - "i=$i&arg=" . $GLOBALS['taille_min'] . '-' . $GLOBALS['taille_test'] |
|
| 115 | + "i=$i&arg=".$GLOBALS['taille_min'].'-'.$GLOBALS['taille_test'] |
|
| 116 | 116 | ); |
| 117 | 117 | |
| 118 | 118 | ob_start('action_tester_taille_error_handler'); |
| 119 | 119 | filtrer('image_recadre', $image_source, $taille, $taille); |
| 120 | - $GLOBALS['redirect'] = generer_url_action('tester_taille', "i=$i&arg=$taille-" . $GLOBALS['taille_max']); |
|
| 120 | + $GLOBALS['redirect'] = generer_url_action('tester_taille', "i=$i&arg=$taille-".$GLOBALS['taille_max']); |
|
| 121 | 121 | |
| 122 | 122 | // si la valeur intermediaire a reussi, on teste la valeur maxi qui est peut etre sous estimee |
| 123 | 123 | // si $GLOBALS['taille_min']==0 (car on est au premier coup) |
| 124 | 124 | if ($GLOBALS['taille_min'] == 0) { |
| 125 | 125 | $taille = $GLOBALS['taille_max']; |
| 126 | 126 | filtrer('image_recadre', $image_source, $taille, $taille); |
| 127 | - $GLOBALS['redirect'] = generer_url_action('tester_taille', "i=$i&arg=$taille-" . $GLOBALS['taille_max']); |
|
| 127 | + $GLOBALS['redirect'] = generer_url_action('tester_taille', "i=$i&arg=$taille-".$GLOBALS['taille_max']); |
|
| 128 | 128 | } |
| 129 | 129 | ob_end_clean(); |
| 130 | 130 | |
@@ -44,7 +44,7 @@ discard block |
||
| 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,7 +52,7 @@ discard block |
||
| 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 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 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(); |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | return; |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | -include_spip('inc/charsets'); # pour le nom de fichier |
|
| 23 | +include_spip('inc/charsets'); # pour le nom de fichier |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * Effacer une rubrique |
@@ -36,19 +36,19 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | if (intval($id_rubrique)) { |
| 39 | - sql_delete('spip_rubriques', 'id_rubrique=' . intval($id_rubrique)); |
|
| 39 | + sql_delete('spip_rubriques', 'id_rubrique='.intval($id_rubrique)); |
|
| 40 | 40 | // Les admin restreints qui n'administraient que cette rubrique |
| 41 | 41 | // deviennent redacteurs |
| 42 | 42 | // (il y a sans doute moyen de faire ca avec un having) |
| 43 | 43 | |
| 44 | - $q = sql_select('id_auteur', 'spip_auteurs_liens', "objet='rubrique' AND id_objet=" . intval($id_rubrique)); |
|
| 44 | + $q = sql_select('id_auteur', 'spip_auteurs_liens', "objet='rubrique' AND id_objet=".intval($id_rubrique)); |
|
| 45 | 45 | while ($r = sql_fetch($q)) { |
| 46 | 46 | $id_auteur = $r['id_auteur']; |
| 47 | 47 | // degrader avant de supprimer la restriction d'admin |
| 48 | 48 | // section critique sur les droits |
| 49 | 49 | $n = sql_countsel( |
| 50 | 50 | 'spip_auteurs_liens', |
| 51 | - "objet='rubrique' AND id_objet!=" . intval($id_rubrique) . ' AND id_auteur=' . intval($id_auteur) |
|
| 51 | + "objet='rubrique' AND id_objet!=".intval($id_rubrique).' AND id_auteur='.intval($id_auteur) |
|
| 52 | 52 | ); |
| 53 | 53 | if (!$n) { |
| 54 | 54 | include_spip('action/editer_auteur'); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | } |
| 57 | 57 | sql_delete( |
| 58 | 58 | 'spip_auteurs_liens', |
| 59 | - "objet='rubrique' AND id_objet=" . intval($id_rubrique) . ' AND id_auteur=' . intval($id_auteur) |
|
| 59 | + "objet='rubrique' AND id_objet=".intval($id_rubrique).' AND id_auteur='.intval($id_auteur) |
|
| 60 | 60 | ); |
| 61 | 61 | } |
| 62 | 62 | // menu_rubriques devra recalculer |
@@ -106,7 +106,7 @@ discard block |
||
| 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'"; |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | $id_article, |
| 120 | 120 | [ |
| 121 | 121 | 'data' => $set, |
| 122 | - 'nonvide' => ['titre' => _T('info_nouvel_article') . ' ' . _T('info_numero_abbreviation') . $id_article], |
|
| 122 | + 'nonvide' => ['titre' => _T('info_nouvel_article').' '._T('info_numero_abbreviation').$id_article], |
|
| 123 | 123 | 'invalideur' => $invalideur, |
| 124 | 124 | 'indexation' => $indexation, |
| 125 | 125 | 'date_modif' => 'date_modif' // champ a mettre a date('Y-m-d H:i:s') s'il y a modif |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | if (autoriser('modifier', 'article', $id_article) and $s != 'publie') { |
| 311 | 311 | $statut = $champs['statut'] = $s; |
| 312 | 312 | } else { |
| 313 | - spip_log("editer_article $id_article refus " . join(' ', $c)); |
|
| 313 | + spip_log("editer_article $id_article refus ".join(' ', $c)); |
|
| 314 | 314 | } |
| 315 | 315 | } |
| 316 | 316 | |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | isset($c['id_parent']) |
| 337 | 337 | and $id_parent = $c['id_parent'] |
| 338 | 338 | and $id_parent != $id_rubrique |
| 339 | - and (sql_fetsel('1', 'spip_rubriques', 'id_rubrique=' . intval($id_parent))) |
|
| 339 | + and (sql_fetsel('1', 'spip_rubriques', 'id_rubrique='.intval($id_parent))) |
|
| 340 | 340 | ) { |
| 341 | 341 | $champs['id_rubrique'] = $id_parent; |
| 342 | 342 | |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | // Si on deplace l'article |
| 438 | 438 | // changer aussi son secteur et sa langue (si heritee) |
| 439 | 439 | if (isset($champs['id_rubrique'])) { |
| 440 | - $row_rub = sql_fetsel('id_secteur, lang', 'spip_rubriques', 'id_rubrique=' . sql_quote($champs['id_rubrique'])); |
|
| 440 | + $row_rub = sql_fetsel('id_secteur, lang', 'spip_rubriques', 'id_rubrique='.sql_quote($champs['id_rubrique'])); |
|
| 441 | 441 | |
| 442 | 442 | $langue = $row_rub['lang']; |
| 443 | 443 | $champs['id_secteur'] = $row_rub['id_secteur']; |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | sql_fetsel( |
| 446 | 446 | '1', |
| 447 | 447 | 'spip_articles', |
| 448 | - 'id_article=' . intval($id_article) . " AND langue_choisie<>'oui' AND lang<>" . sql_quote($langue) |
|
| 448 | + 'id_article='.intval($id_article)." AND langue_choisie<>'oui' AND lang<>".sql_quote($langue) |
|
| 449 | 449 | ) |
| 450 | 450 | ) { |
| 451 | 451 | $champs['lang'] = $langue; |
@@ -456,7 +456,7 @@ discard block |
||
| 456 | 456 | return; |
| 457 | 457 | } |
| 458 | 458 | |
| 459 | - sql_updateq('spip_articles', $champs, 'id_article=' . intval($id_article)); |
|
| 459 | + sql_updateq('spip_articles', $champs, 'id_article='.intval($id_article)); |
|
| 460 | 460 | |
| 461 | 461 | // Changer le statut des rubriques concernees |
| 462 | 462 | |
@@ -477,6 +477,6 @@ discard block |
||
| 477 | 477 | foreach ($plus as $n => $t) { |
| 478 | 478 | $plus[$n] = preg_replace(",<!--SPIP-->[\n\r]*,", '', $t); |
| 479 | 479 | } |
| 480 | - set_request('texte', join('', $plus) . _request('texte')); |
|
| 480 | + set_request('texte', join('', $plus)._request('texte')); |
|
| 481 | 481 | } |
| 482 | 482 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | } |
| 69 | 69 | $dir = constant($dir); |
| 70 | 70 | foreach ($infos['install'] as $file) { |
| 71 | - $file = $dir . $plug . '/' . trim($file); |
|
| 71 | + $file = $dir.$plug.'/'.trim($file); |
|
| 72 | 72 | if (file_exists($file)) { |
| 73 | 73 | include_once($file); |
| 74 | 74 | } |
@@ -81,10 +81,10 @@ discard block |
||
| 81 | 81 | // S'assurer que les metas de la table spécifique sont bien accessibles dans la globale |
| 82 | 82 | lire_metas($table); |
| 83 | 83 | } |
| 84 | - $nom_meta = $infos['prefix'] . '_base_version'; |
|
| 84 | + $nom_meta = $infos['prefix'].'_base_version'; |
|
| 85 | 85 | |
| 86 | 86 | // Détermination de la fonction à appeler et de ses arguments |
| 87 | - $f = $infos['prefix'] . '_install'; |
|
| 87 | + $f = $infos['prefix'].'_install'; |
|
| 88 | 88 | if (!function_exists($f)) { |
| 89 | 89 | $f = isset($infos['schema']) ? 'spip_plugin_install' : ''; |
| 90 | 90 | $arg = $infos; |
@@ -168,12 +168,12 @@ discard block |
||
| 168 | 168 | and spip_version_compare($GLOBALS[$table][$nom_meta], $version_cible, '>=')); |
| 169 | 169 | break; |
| 170 | 170 | case 'install': |
| 171 | - if (function_exists($upgrade = $infos['prefix'] . '_upgrade')) { |
|
| 171 | + if (function_exists($upgrade = $infos['prefix'].'_upgrade')) { |
|
| 172 | 172 | $upgrade($nom_meta, $version_cible, $table); |
| 173 | 173 | } |
| 174 | 174 | break; |
| 175 | 175 | case 'uninstall': |
| 176 | - if (function_exists($vider_tables = $infos['prefix'] . '_vider_tables')) { |
|
| 176 | + if (function_exists($vider_tables = $infos['prefix'].'_vider_tables')) { |
|
| 177 | 177 | $vider_tables($nom_meta, $table); |
| 178 | 178 | } |
| 179 | 179 | break; |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | if (is_null($p)) { |
| 51 | - $arbre = ['erreur' => [_T('erreur_plugin_tag_plugin_absent') . " : $plug"]]; |
|
| 51 | + $arbre = ['erreur' => [_T('erreur_plugin_tag_plugin_absent')." : $plug"]]; |
|
| 52 | 52 | $silence = true; |
| 53 | 53 | } else { |
| 54 | 54 | $arbre = $p; |
@@ -83,15 +83,15 @@ discard block |
||
| 83 | 83 | if (isset($arbre['etat'])) { |
| 84 | 84 | $etat = trim(end($arbre['etat'])); |
| 85 | 85 | if (!in_array($etat, $etats)) { |
| 86 | - $arbre['erreur'][] = _T('erreur_plugin_etat_inconnu') . " : '$etat'"; |
|
| 86 | + $arbre['erreur'][] = _T('erreur_plugin_etat_inconnu')." : '$etat'"; |
|
| 87 | 87 | } |
| 88 | 88 | } |
| 89 | 89 | if (isset($arbre['options'])) { |
| 90 | 90 | foreach ($arbre['options'] as $optfile) { |
| 91 | 91 | $optfile = trim($optfile); |
| 92 | - if (!@is_readable($dir_plugins . "$plug/$optfile")) { |
|
| 92 | + if (!@is_readable($dir_plugins."$plug/$optfile")) { |
|
| 93 | 93 | if (!$silence) { |
| 94 | - $arbre['erreur'][] = _T('erreur_plugin_fichier_absent') . " : $optfile"; |
|
| 94 | + $arbre['erreur'][] = _T('erreur_plugin_fichier_absent')." : $optfile"; |
|
| 95 | 95 | } |
| 96 | 96 | } |
| 97 | 97 | } |
@@ -99,9 +99,9 @@ discard block |
||
| 99 | 99 | if (isset($arbre['fonctions'])) { |
| 100 | 100 | foreach ($arbre['fonctions'] as $optfile) { |
| 101 | 101 | $optfile = trim($optfile); |
| 102 | - if (!@is_readable($dir_plugins . "$plug/$optfile")) { |
|
| 102 | + if (!@is_readable($dir_plugins."$plug/$optfile")) { |
|
| 103 | 103 | if (!$silence) { |
| 104 | - $arbre['erreur'][] = _T('erreur_plugin_fichier_absent') . " : $optfile"; |
|
| 104 | + $arbre['erreur'][] = _T('erreur_plugin_fichier_absent')." : $optfile"; |
|
| 105 | 105 | } |
| 106 | 106 | } |
| 107 | 107 | } |
@@ -135,14 +135,14 @@ discard block |
||
| 135 | 135 | // verif que la methode a un nom autorise |
| 136 | 136 | if (in_array(strtolower($action), $liste_methodes_reservees)) { |
| 137 | 137 | if (!$silence) { |
| 138 | - $arbre['erreur'][] = _T('erreur_plugin_nom_fonction_interdit') . " : $action"; |
|
| 138 | + $arbre['erreur'][] = _T('erreur_plugin_nom_fonction_interdit')." : $action"; |
|
| 139 | 139 | } |
| 140 | 140 | } |
| 141 | 141 | if (isset($pipe['inclure'])) { |
| 142 | - $inclure = $dir_plugins . "$plug/" . $pipe['inclure']; |
|
| 142 | + $inclure = $dir_plugins."$plug/".$pipe['inclure']; |
|
| 143 | 143 | if (!@is_readable($inclure)) { |
| 144 | 144 | if (!$silence) { |
| 145 | - $arbre['erreur'][] = _T('erreur_plugin_fichier_absent') . " : $inclure"; |
|
| 145 | + $arbre['erreur'][] = _T('erreur_plugin_fichier_absent')." : $inclure"; |
|
| 146 | 146 | } |
| 147 | 147 | } |
| 148 | 148 | } |
@@ -212,9 +212,9 @@ discard block |
||
| 212 | 212 | foreach ($arbre['noisette'] as $k => $nut) { |
| 213 | 213 | $nut = preg_replace(',[.]html$,uims', '', trim($nut)); |
| 214 | 214 | $arbre['noisette'][$k] = $nut; |
| 215 | - if (!@is_readable($dir_plugins . "$plug/$nut.html")) { |
|
| 215 | + if (!@is_readable($dir_plugins."$plug/$nut.html")) { |
|
| 216 | 216 | if (!$silence) { |
| 217 | - $arbre['erreur'][] = _T('erreur_plugin_fichier_absent') . " : $nut"; |
|
| 217 | + $arbre['erreur'][] = _T('erreur_plugin_fichier_absent')." : $nut"; |
|
| 218 | 218 | } |
| 219 | 219 | } |
| 220 | 220 | } |
@@ -64,9 +64,9 @@ discard block |
||
| 64 | 64 | " class='picto_err'", |
| 65 | 65 | _T('plugin_info_erreur_xml') |
| 66 | 66 | ) |
| 67 | - . "<div class='erreur'>" . join('<br >', $info['erreur']) . '</div>'; |
|
| 67 | + . "<div class='erreur'>".join('<br >', $info['erreur']).'</div>'; |
|
| 68 | 68 | $checkable = false; |
| 69 | - } elseif (isset($GLOBALS['erreurs_activation_raw'][$dir_plugins . $plug_file])) { |
|
| 69 | + } elseif (isset($GLOBALS['erreurs_activation_raw'][$dir_plugins.$plug_file])) { |
|
| 70 | 70 | $class_li .= ' error'; |
| 71 | 71 | $erreur = http_img_pack( |
| 72 | 72 | 'plugin-err-32.png', |
@@ -74,10 +74,10 @@ discard block |
||
| 74 | 74 | " class='picto_err'", |
| 75 | 75 | _T('plugin_impossible_activer', ['plugin' => $nom]) |
| 76 | 76 | ) |
| 77 | - . "<div class='erreur'>" . implode( |
|
| 77 | + . "<div class='erreur'>".implode( |
|
| 78 | 78 | '<br />', |
| 79 | - $GLOBALS['erreurs_activation_raw'][$dir_plugins . $plug_file] |
|
| 80 | - ) . '</div>'; |
|
| 79 | + $GLOBALS['erreurs_activation_raw'][$dir_plugins.$plug_file] |
|
| 80 | + ).'</div>'; |
|
| 81 | 81 | } else { |
| 82 | 82 | $cfg = $actif ? plugin_bouton_config($plug_file, $info, $dir_plugins) : ''; |
| 83 | 83 | if (defined('_DEV_VERSION_SPIP_COMPAT') and !plugin_version_compatible($info['compatibilite'], $GLOBALS['spip_version_branche'])) { |
@@ -94,11 +94,11 @@ discard block |
||
| 94 | 94 | // numerotons les occurrences d'un meme prefix |
| 95 | 95 | $versions[$prefix] = $id = isset($versions[$prefix]) ? intval($versions[$prefix]) + 1 : ''; |
| 96 | 96 | |
| 97 | - $class_li .= ($actif ? ' actif' : '') . ($expose ? ' on' : ''); |
|
| 97 | + $class_li .= ($actif ? ' actif' : '').($expose ? ' on' : ''); |
|
| 98 | 98 | |
| 99 | 99 | return "<li id='$prefix$id' class='$class_li'>" |
| 100 | 100 | . ((!$checkable and !$checked) |
| 101 | - ? '' : plugin_checkbox(++$id_input, $dir_plugins . $plug_file, $checked)) |
|
| 101 | + ? '' : plugin_checkbox(++$id_input, $dir_plugins.$plug_file, $checked)) |
|
| 102 | 102 | . plugin_resume($info, $dir_plugins, $plug_file, $url_page) |
| 103 | 103 | . $cfg |
| 104 | 104 | . $erreur |
@@ -117,9 +117,9 @@ discard block |
||
| 117 | 117 | // si paquet.xml fournit un squelette, le prendre |
| 118 | 118 | if (isset($infos['config']) and $infos['config']) { |
| 119 | 119 | return recuperer_fond( |
| 120 | - "$dir$nom/" . $infos['config'], |
|
| 120 | + "$dir$nom/".$infos['config'], |
|
| 121 | 121 | [ |
| 122 | - 'script' => 'configurer_' . $prefix, |
|
| 122 | + 'script' => 'configurer_'.$prefix, |
|
| 123 | 123 | 'nom' => $nom |
| 124 | 124 | ] |
| 125 | 125 | ); |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | return recuperer_fond( |
| 139 | 139 | 'prive/squelettes/inclure/cfg', |
| 140 | 140 | [ |
| 141 | - 'script' => 'configurer_' . $prefix, |
|
| 141 | + 'script' => 'configurer_'.$prefix, |
|
| 142 | 142 | 'nom' => $nom |
| 143 | 143 | ] |
| 144 | 144 | ); |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | . "<input type='checkbox' name='s$name' id='label_$id_input'" |
| 155 | 155 | . ($actif ? " checked='checked'" : '') |
| 156 | 156 | . " class='checkbox' value='O' />" |
| 157 | - . "\n<label for='label_$id_input'>" . _T('activer_plugin') . '</label>' |
|
| 157 | + . "\n<label for='label_$id_input'>"._T('activer_plugin').'</label>' |
|
| 158 | 158 | . '</div>'; |
| 159 | 159 | } |
| 160 | 160 | |
@@ -209,11 +209,11 @@ discard block |
||
| 209 | 209 | . "<h3><a href='$url' rel='info'>" |
| 210 | 210 | . $nom |
| 211 | 211 | . '</a></h3>' |
| 212 | - . " <span class='version'>" . $info['version'] . '</span>' |
|
| 212 | + . " <span class='version'>".$info['version'].'</span>' |
|
| 213 | 213 | . " <span class='etat'> - " |
| 214 | 214 | . plugin_etat_en_clair($info['etat']) |
| 215 | 215 | . '</span>' |
| 216 | - . "<div class='short'>" . $slogan . '</div>' |
|
| 216 | + . "<div class='short'>".$slogan.'</div>' |
|
| 217 | 217 | . $i |
| 218 | 218 | . '</div>'; |
| 219 | 219 | } |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | $text2 = _T('info_desinstaller_plugin'); |
| 229 | 229 | $file = basename($plug_file); |
| 230 | 230 | |
| 231 | - return "<div class='actions'>[" . |
|
| 231 | + return "<div class='actions'>[". |
|
| 232 | 232 | "<a href='$action' |
| 233 | 233 | onclick='return confirm(\"$text $nom ?\\n$text2\")'>" |
| 234 | 234 | . $text |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | $etat = 'developpement'; |
| 251 | 251 | } |
| 252 | 252 | |
| 253 | - return _T('plugin_etat_' . $etat); |
|
| 253 | + return _T('plugin_etat_'.$etat); |
|
| 254 | 254 | } |
| 255 | 255 | |
| 256 | 256 | // https://code.spip.net/@plugin_propre |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | $module = substr($module, strlen(_DIR_RACINE)); |
| 261 | 261 | } |
| 262 | 262 | if (preg_match('|^\w+_[\w_]+$|', $texte)) { |
| 263 | - $texte = _T(($module ? "$module:" : '') . $texte, [], ['force' => false]); |
|
| 263 | + $texte = _T(($module ? "$module:" : '').$texte, [], ['force' => false]); |
|
| 264 | 264 | } |
| 265 | 265 | |
| 266 | 266 | return $propre($texte); |
@@ -293,9 +293,9 @@ discard block |
||
| 293 | 293 | isset($info['documentation']) |
| 294 | 294 | and $lien = $info['documentation'] |
| 295 | 295 | ) { |
| 296 | - $description .= "<p><em class='site'><a href='$lien' class='spip_out'>" . _T('en_savoir_plus') . '</a></em></p>'; |
|
| 296 | + $description .= "<p><em class='site'><a href='$lien' class='spip_out'>"._T('en_savoir_plus').'</a></em></p>'; |
|
| 297 | 297 | } |
| 298 | - $s .= "<dd class='desc'>" . $description . "</dd>\n"; |
|
| 298 | + $s .= "<dd class='desc'>".$description."</dd>\n"; |
|
| 299 | 299 | |
| 300 | 300 | if (isset($info['auteur'])) { |
| 301 | 301 | if (is_array($info['auteur'])) { |
@@ -305,19 +305,19 @@ discard block |
||
| 305 | 305 | $a = trim($info['auteur']); |
| 306 | 306 | } |
| 307 | 307 | if ($a) { |
| 308 | - $s .= "<dt class='auteurs'>" . _T('public:par_auteur') . "</dt><dd class='auteurs'>" . PtoBR(propre( |
|
| 308 | + $s .= "<dt class='auteurs'>"._T('public:par_auteur')."</dt><dd class='auteurs'>".PtoBR(propre( |
|
| 309 | 309 | $a, |
| 310 | 310 | $dir |
| 311 | - )) . "</dd>\n"; |
|
| 311 | + ))."</dd>\n"; |
|
| 312 | 312 | } |
| 313 | 313 | } |
| 314 | 314 | |
| 315 | 315 | if (isset($info['credit'])) { |
| 316 | 316 | if ($a = formater_credits($info['credit'], ', ')) { |
| 317 | - $s .= "<dt class='credits'>" . _T('plugin_info_credit') . "</dt><dd class='credits'>" . PtoBR(propre( |
|
| 317 | + $s .= "<dt class='credits'>"._T('plugin_info_credit')."</dt><dd class='credits'>".PtoBR(propre( |
|
| 318 | 318 | $a, |
| 319 | 319 | $dir |
| 320 | - )) . "</dd>\n"; |
|
| 320 | + ))."</dd>\n"; |
|
| 321 | 321 | } |
| 322 | 322 | } |
| 323 | 323 | |
@@ -329,10 +329,10 @@ discard block |
||
| 329 | 329 | $a = trim($info['licence']); |
| 330 | 330 | } |
| 331 | 331 | if ($a) { |
| 332 | - $s .= "<dt class='licence'>" . _T('intitule_licence') . "</dt><dd class='licence'>" . PtoBR(propre( |
|
| 332 | + $s .= "<dt class='licence'>"._T('intitule_licence')."</dt><dd class='licence'>".PtoBR(propre( |
|
| 333 | 333 | $a, |
| 334 | 334 | $dir |
| 335 | - )) . "</dd>\n"; |
|
| 335 | + ))."</dd>\n"; |
|
| 336 | 336 | } |
| 337 | 337 | } |
| 338 | 338 | |
@@ -343,25 +343,24 @@ discard block |
||
| 343 | 343 | // |
| 344 | 344 | $infotech = []; |
| 345 | 345 | |
| 346 | - $version = '<dt>' . _T('version') . '</dt><dd>' . $info['version']; |
|
| 346 | + $version = '<dt>'._T('version').'</dt><dd>'.$info['version']; |
|
| 347 | 347 | // Version VCS |
| 348 | - if ($vcs = version_vcs_courante($dir_plugins . $plug_file)) { |
|
| 349 | - $version .= ' ' . $vcs; |
|
| 348 | + if ($vcs = version_vcs_courante($dir_plugins.$plug_file)) { |
|
| 349 | + $version .= ' '.$vcs; |
|
| 350 | 350 | } |
| 351 | 351 | $version .= '</dd>'; |
| 352 | 352 | $infotech[] = $version; |
| 353 | - $infotech[] = '<dt>' . _T('repertoire_plugins') . '</dt><dd>' . joli_repertoire("$dir_plugins$plug_file") . '</dd>'; |
|
| 353 | + $infotech[] = '<dt>'._T('repertoire_plugins').'</dt><dd>'.joli_repertoire("$dir_plugins$plug_file").'</dd>'; |
|
| 354 | 354 | // source zip le cas echeant |
| 355 | - $infotech[] = (lire_fichier($dir_plugins . $plug_file . '/install.log', $log) |
|
| 355 | + $infotech[] = (lire_fichier($dir_plugins.$plug_file.'/install.log', $log) |
|
| 356 | 356 | and preg_match(',^source:(.*)$,m', $log, $r)) |
| 357 | - ? '<dt>' . _T('plugin_source') . '</dt><dd>' . trim($r[1]) . '</dd>' |
|
| 357 | + ? '<dt>'._T('plugin_source').'</dt><dd>'.trim($r[1]).'</dd>' |
|
| 358 | 358 | : ''; |
| 359 | 359 | |
| 360 | - $infotech[] = !$info['necessite'] ? '' : |
|
| 361 | - ('<dt>' . _T('plugin_info_necessite') . '</dt><dd>' . join( |
|
| 360 | + $infotech[] = !$info['necessite'] ? '' : ('<dt>'._T('plugin_info_necessite').'</dt><dd>'.join( |
|
| 362 | 361 | ' ', |
| 363 | 362 | array_map('array_shift', $info['necessite']) |
| 364 | - ) . '</dd>'); |
|
| 363 | + ).'</dd>'); |
|
| 365 | 364 | |
| 366 | 365 | $s .= "<dl class='tech'>" |
| 367 | 366 | . join('', $infotech) |
@@ -382,8 +381,8 @@ discard block |
||
| 382 | 381 | $texte .= |
| 383 | 382 | (!is_array($_credit)) |
| 384 | 383 | ? PtoBR(propre($_credit)) |
| 385 | - : ($_credit['url'] ? '<a href="' . $_credit['url'] . '">' : '') . |
|
| 386 | - $_credit['nom'] . |
|
| 384 | + : ($_credit['url'] ? '<a href="'.$_credit['url'].'">' : ''). |
|
| 385 | + $_credit['nom']. |
|
| 387 | 386 | ($_credit['url'] ? '</a>' : ''); |
| 388 | 387 | } |
| 389 | 388 | |