@@ -101,8 +101,8 @@ discard block |
||
| 101 | 101 | } |
| 102 | 102 | foreach ($debug['sourcefile'] as $k => $v) { |
| 103 | 103 | if (strpos($v, 'administration.') !== false) { |
| 104 | - if (isset($debug['resultat'][$k . 'tout'])) { |
|
| 105 | - return $debug['resultat'][$k . 'tout']; |
|
| 104 | + if (isset($debug['resultat'][$k.'tout'])) { |
|
| 105 | + return $debug['resultat'][$k.'tout']; |
|
| 106 | 106 | } |
| 107 | 107 | } |
| 108 | 108 | } |
@@ -179,12 +179,12 @@ discard block |
||
| 179 | 179 | and $id = intval($id) |
| 180 | 180 | and $desc = $trouver_table(table_objet_sql($type)) |
| 181 | 181 | ) { |
| 182 | - $id = sql_getfetsel($_id_type, table_objet_sql($type), "$_id_type=" . intval($id)); |
|
| 182 | + $id = sql_getfetsel($_id_type, table_objet_sql($type), "$_id_type=".intval($id)); |
|
| 183 | 183 | if ($id) { |
| 184 | 184 | $env[$_id_type] = $id; |
| 185 | 185 | $env['objet'] = $type; |
| 186 | 186 | $env['id_objet'] = $id; |
| 187 | - $env['voir_' . $obj] = |
|
| 187 | + $env['voir_'.$obj] = |
|
| 188 | 188 | str_replace('&', '&', generer_url_entite($id, $obj, '', '', false)); |
| 189 | 189 | if (isset($desc['field']['id_rubrique']) |
| 190 | 190 | and $type != 'rubrique' |
@@ -237,10 +237,10 @@ discard block |
||
| 237 | 237 | $notpub = sql_in("statut", array('prop', 'prive')); |
| 238 | 238 | |
| 239 | 239 | if ($type == 'article' and $GLOBALS['meta']['post_dates'] != 'oui') { |
| 240 | - $notpub .= " OR (statut='publie' AND date>" . sql_quote(date('Y-m-d H:i:s')) . ")"; |
|
| 240 | + $notpub .= " OR (statut='publie' AND date>".sql_quote(date('Y-m-d H:i:s')).")"; |
|
| 241 | 241 | } |
| 242 | 242 | |
| 243 | - return sql_fetsel('1', table_objet_sql($type), id_table_objet($type) . "=" . $id . " AND ($notpub)"); |
|
| 243 | + return sql_fetsel('1', table_objet_sql($type), id_table_objet($type)."=".$id." AND ($notpub)"); |
|
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | |
@@ -254,9 +254,9 @@ discard block |
||
| 254 | 254 | $alang = ''; |
| 255 | 255 | if (!empty($_COOKIE['spip_admin'])) { |
| 256 | 256 | $email_or_login = preg_replace(',^@,', '', $_COOKIE['spip_admin']); |
| 257 | - $alang = sql_getfetsel('lang', 'spip_auteurs', "email=" . sql_quote($email_or_login)); |
|
| 257 | + $alang = sql_getfetsel('lang', 'spip_auteurs', "email=".sql_quote($email_or_login)); |
|
| 258 | 258 | if (!$alang) { |
| 259 | - $alang = sql_getfetsel('lang', 'spip_auteurs', "login=" . sql_quote($email_or_login)); |
|
| 259 | + $alang = sql_getfetsel('lang', 'spip_auteurs', "login=".sql_quote($email_or_login)); |
|
| 260 | 260 | } |
| 261 | 261 | } |
| 262 | 262 | if (!$alang) { |
@@ -281,9 +281,8 @@ discard block |
||
| 281 | 281 | |
| 282 | 282 | return ((!isset($GLOBALS['xhtml']) or $GLOBALS['xhtml'] !== 'true') ? |
| 283 | 283 | (parametre_url(self(), 'var_mode', 'debug', '&') |
| 284 | - . '&var_mode_affiche=validation') : |
|
| 285 | - ('http://validator.w3.org/check?uri=' |
|
| 286 | - . rawurlencode("http://" . $_SERVER['HTTP_HOST'] . nettoyer_uri()))); |
|
| 284 | + . '&var_mode_affiche=validation') : ('http://validator.w3.org/check?uri=' |
|
| 285 | + . rawurlencode("http://".$_SERVER['HTTP_HOST'].nettoyer_uri()))); |
|
| 287 | 286 | } |
| 288 | 287 | |
| 289 | 288 | /** |