@@ -19,8 +19,8 @@ |
||
| 19 | 19 | $primary = id_table_objet($objet); |
| 20 | 20 | |
| 21 | 21 | $select = "$primary as id,lang"; |
| 22 | - $where = 'id_trad=' . intval($id_trad); |
|
| 23 | - $trouver_table = charger_fonction('trouver_table','base'); |
|
| 22 | + $where = 'id_trad='.intval($id_trad); |
|
| 23 | + $trouver_table = charger_fonction('trouver_table', 'base'); |
|
| 24 | 24 | $desc = $trouver_table($table_objet_sql); |
| 25 | 25 | if (isset($desc['field']['statut'])) { |
| 26 | 26 | $select .= ',statut'; |
@@ -154,7 +154,7 @@ |
||
| 154 | 154 | ) { |
| 155 | 155 | return parametre_url(parametre_url(generer_url_ecrire('message_edit', 'new=oui'), 'to', $id_auteur), 'redirect', self()); |
| 156 | 156 | } elseif (strlen($email) and autoriser('voir', 'auteur', $id_auteur)) { |
| 157 | - return 'mailto:' . $email; |
|
| 157 | + return 'mailto:'.$email; |
|
| 158 | 158 | } else { |
| 159 | 159 | return ''; |
| 160 | 160 | } |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | '_publiable' => $publiable, |
| 108 | 108 | '_label' => isset($desc['texte_changer_statut']) ? $desc['texte_changer_statut'] : 'texte_article_statut', |
| 109 | 109 | '_aide' => isset($desc['aide_changer_statut']) ? $desc['aide_changer_statut'] : '', |
| 110 | - '_hidden' => "<input type='hidden' name='statut_old' value='" . $v['statut'] . "' />", |
|
| 110 | + '_hidden' => "<input type='hidden' name='statut_old' value='".$v['statut']."' />", |
|
| 111 | 111 | ); |
| 112 | 112 | |
| 113 | 113 | #if (!count($valeurs['statuts'])) |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | // un checkbox seul de name X non coche n'est pas poste. |
| 40 | 40 | // on verifie le champ X_check qui indique que la checkbox etait presente dans le formulaire. |
| 41 | 41 | foreach (array('multi_secteurs') as $m) { |
| 42 | - if (!is_null(_request($m . '_check'))) { |
|
| 42 | + if (!is_null(_request($m.'_check'))) { |
|
| 43 | 43 | ecrire_meta($m, _request($m) ? 'oui' : 'non'); |
| 44 | 44 | } |
| 45 | 45 | } |
@@ -112,12 +112,12 @@ discard block |
||
| 112 | 112 | . "'>" |
| 113 | 113 | . "<input type='hidden' name='{$name}[]' value='$code_langue'>" // necessaire ... |
| 114 | 114 | . "<input type='checkbox' name='{$name}[]' id='{$name}_$code_langue' value='$code_langue' checked='checked' disabled='disabled' />" |
| 115 | - . "<label for='{$name}_$code_langue'>" . $nom_langue . " <span class='code_langue'>[$code_langue]</span></label>" |
|
| 115 | + . "<label for='{$name}_$code_langue'>".$nom_langue." <span class='code_langue'>[$code_langue]</span></label>" |
|
| 116 | 116 | . '</li>'; |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | if ($res) { |
| 120 | - $res = "<ul id='langues_bloquees'>" . $res . "</ul><div class='nettoyeur'></div>"; |
|
| 120 | + $res = "<ul id='langues_bloquees'>".$res."</ul><div class='nettoyeur'></div>"; |
|
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | $res .= "<ul id='langues_proposees'>"; |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | . "<label for='{$name}_$code_langue'" |
| 138 | 138 | . ($checked ? " class='on'" : '') |
| 139 | 139 | . '>' |
| 140 | - . $nom_langue . " <span class='code_langue'>[$code_langue]</span></label>" |
|
| 140 | + . $nom_langue." <span class='code_langue'>[$code_langue]</span></label>" |
|
| 141 | 141 | . '</li>'; |
| 142 | 142 | } |
| 143 | 143 | } |
@@ -62,5 +62,5 @@ |
||
| 62 | 62 | $reload = texte_script(couper(_request('nom_site'), 35)); |
| 63 | 63 | $reload = "<script type='text/javascript'>if (window.jQuery) jQuery('#bando_identite .nom_site_spip .nom').html('$reload');</script>"; |
| 64 | 64 | |
| 65 | - return array('message_ok' => _T('config_info_enregistree') . $reload, 'editable' => true); |
|
| 65 | + return array('message_ok' => _T('config_info_enregistree').$reload, 'editable' => true); |
|
| 66 | 66 | } |
@@ -80,13 +80,13 @@ discard block |
||
| 80 | 80 | // Attention a l'ordre: |
| 81 | 81 | // si l'un des 3 est un sous-rep d'un autre, le mettre avant. |
| 82 | 82 | |
| 83 | -define('_EXTRAIRE_PLUGIN', '@(' . _DIR_PLUGINS_AUTO . '|' . _DIR_PLUGINS . '|' . _DIR_PLUGINS_DIST . ')/?([^/]+)/@'); |
|
| 83 | +define('_EXTRAIRE_PLUGIN', '@('._DIR_PLUGINS_AUTO.'|'._DIR_PLUGINS.'|'._DIR_PLUGINS_DIST.')/?([^/]+)/@'); |
|
| 84 | 84 | |
| 85 | 85 | // Recuperer la version compilee de plugin.xml et normaliser |
| 86 | 86 | // Si ce n'est pas un plugin, dire qu'il faut prendre la table std des meta. |
| 87 | 87 | function formulaires_configurer_metas_infos($form) { |
| 88 | 88 | |
| 89 | - $path = find_in_path($form . '.' . _EXTENSION_SQUELETTES, 'formulaires/'); |
|
| 89 | + $path = find_in_path($form.'.'._EXTENSION_SQUELETTES, 'formulaires/'); |
|
| 90 | 90 | if (!$path) { |
| 91 | 91 | return ''; |
| 92 | 92 | } // cas traite en amont normalement. |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $prefix = $infos['prefix']; |
| 106 | 106 | $infos['path'] = $path; |
| 107 | 107 | if (!isset($infos['meta'])) { |
| 108 | - $infos['meta'] = ($prefix . '_metas'); |
|
| 108 | + $infos['meta'] = ($prefix.'_metas'); |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | return $infos; |
@@ -46,6 +46,6 @@ |
||
| 46 | 46 | 'recherche' => _request('recherche'), |
| 47 | 47 | 'lang' => $lang, |
| 48 | 48 | 'class' => $class, |
| 49 | - '_id_champ' => 'rechercher_' . substr(md5($action . $class), 0, 4), |
|
| 49 | + '_id_champ' => 'rechercher_'.substr(md5($action.$class), 0, 4), |
|
| 50 | 50 | ); |
| 51 | 51 | } |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | return false; |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - $row = sql_fetsel('id_article,virtuel', 'spip_articles', 'id_article=' . intval($id_article)); |
|
| 24 | + $row = sql_fetsel('id_article,virtuel', 'spip_articles', 'id_article='.intval($id_article)); |
|
| 25 | 25 | if (!$row['id_article']) { |
| 26 | 26 | return false; |
| 27 | 27 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | function formulaires_rediriger_article_verifier_dist($id_article, $retour = '') { |
| 49 | 49 | $erreurs = array(); |
| 50 | 50 | |
| 51 | - if (($redirection = _request('redirection')) == $id_article || $redirection == 'art' . $id_article) { |
|
| 51 | + if (($redirection = _request('redirection')) == $id_article || $redirection == 'art'.$id_article) { |
|
| 52 | 52 | $erreurs['redirection'] = _T('info_redirection_boucle'); |
| 53 | 53 | } |
| 54 | 54 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | $js = _AJAX ? '<script type="text/javascript">if (window.ajaxReload) ajaxReload("wysiwyg");</script>' : ''; |
| 69 | 69 | |
| 70 | 70 | return array( |
| 71 | - 'message_ok' => ($url ? _T('info_redirection_activee') : _T('info_redirection_desactivee')) . $js, |
|
| 71 | + 'message_ok' => ($url ? _T('info_redirection_activee') : _T('info_redirection_desactivee')).$js, |
|
| 72 | 72 | 'editable' => true |
| 73 | 73 | ); |
| 74 | 74 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | include_spip('inc/texte'); // pour aide, couper, lang |
| 49 | 49 | $info = ''; |
| 50 | 50 | if (!need_proxy($t['host'], $http_proxy, $http_noproxy)) { |
| 51 | - $info = '<strong>' . _T('page_pas_proxy') . '</strong><br />'; |
|
| 51 | + $info = '<strong>'._T('page_pas_proxy').'</strong><br />'; |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | // il faut fausser le proxy actuel pour faire le test ! |
@@ -60,14 +60,14 @@ discard block |
||
| 60 | 60 | $GLOBALS['meta']['http_proxy'] = $cur_http_proxy; |
| 61 | 61 | $GLOBALS['meta']['http_noproxy'] = $cur_http_noproxy; |
| 62 | 62 | if ($page) { |
| 63 | - $erreurs['message_ok'] = _T('info_proxy_ok') . "<br />$info\n<tt>" . couper(entites_html($page), 300) . '</tt>'; |
|
| 63 | + $erreurs['message_ok'] = _T('info_proxy_ok')."<br />$info\n<tt>".couper(entites_html($page), 300).'</tt>'; |
|
| 64 | 64 | $erreurs['message_erreur'] = ''; |
| 65 | 65 | } else { |
| 66 | - $erreurs['message_erreur'] = $info . _T( |
|
| 66 | + $erreurs['message_erreur'] = $info._T( |
|
| 67 | 67 | 'info_impossible_lire_page', |
| 68 | 68 | array('test_proxy' => "<tt>$test_proxy</tt>") |
| 69 | 69 | ) |
| 70 | - . ' <b><tt>' . no_password_proxy_url($http_proxy) . '</tt></b>.' |
|
| 70 | + . ' <b><tt>'.no_password_proxy_url($http_proxy).'</tt></b>.' |
|
| 71 | 71 | . aider('confhttpproxy'); |
| 72 | 72 | } |
| 73 | 73 | } |
@@ -111,23 +111,23 @@ discard block |
||
| 111 | 111 | return false; |
| 112 | 112 | } |
| 113 | 113 | // scheme |
| 114 | - $uri = (!empty($url['scheme'])) ? $url['scheme'] . '://' : ''; |
|
| 114 | + $uri = (!empty($url['scheme'])) ? $url['scheme'].'://' : ''; |
|
| 115 | 115 | // user & pass |
| 116 | 116 | if (!empty($url['user'])) { |
| 117 | - $uri .= $url['user'] . ':' . $url['pass'] . '@'; |
|
| 117 | + $uri .= $url['user'].':'.$url['pass'].'@'; |
|
| 118 | 118 | } |
| 119 | 119 | // host |
| 120 | 120 | $uri .= $url['host']; |
| 121 | 121 | // port |
| 122 | - $port = (!empty($url['port'])) ? ':' . $url['port'] : ''; |
|
| 122 | + $port = (!empty($url['port'])) ? ':'.$url['port'] : ''; |
|
| 123 | 123 | $uri .= $port; |
| 124 | 124 | // path |
| 125 | 125 | $uri .= $url['path']; |
| 126 | 126 | // fragment or query |
| 127 | 127 | if (isset($url['fragment'])) { |
| 128 | - $uri .= '#' . $url['fragment']; |
|
| 128 | + $uri .= '#'.$url['fragment']; |
|
| 129 | 129 | } elseif (isset($url['query'])) { |
| 130 | - $uri .= '?' . $url['query']; |
|
| 130 | + $uri .= '?'.$url['query']; |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | return $uri; |