@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | if (!$fonc) { |
| 148 | 148 | $fonc = $GLOBALS['debug_objets']['principal']; |
| 149 | 149 | } |
| 150 | - $titre = !$mode ? $fonc : ($mode . (isset($GLOBALS['debug_objets']['sourcefile'][$fonc]) ? " " . $GLOBALS['debug_objets']['sourcefile'][$fonc] : "")); |
|
| 150 | + $titre = !$mode ? $fonc : ($mode.(isset($GLOBALS['debug_objets']['sourcefile'][$fonc]) ? " ".$GLOBALS['debug_objets']['sourcefile'][$fonc] : "")); |
|
| 151 | 151 | } |
| 152 | 152 | if ($message === false) { |
| 153 | 153 | lang_select(); |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | $fond = isset($GLOBALS['fond']) ? $GLOBALS['fond'] : ""; |
| 177 | 177 | // une erreur critique sort $message en array |
| 178 | 178 | $debug = is_array($msg) ? $msg[1] : $msg; |
| 179 | - spip_log("Debug: " . $debug . " (" . $fond . ")"); |
|
| 179 | + spip_log("Debug: ".$debug." (".$fond.")"); |
|
| 180 | 180 | |
| 181 | 181 | return $msg; |
| 182 | 182 | } |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | function debusquer_bandeau($erreurs) { |
| 185 | 185 | |
| 186 | 186 | if (!empty($erreurs)) { |
| 187 | - $n = array(count($erreurs) . ' ' . _T('zbug_erreur_squelette')); |
|
| 187 | + $n = array(count($erreurs).' '._T('zbug_erreur_squelette')); |
|
| 188 | 188 | |
| 189 | 189 | return debusquer_navigation($erreurs, $n); |
| 190 | 190 | } elseif (!empty($GLOBALS['tableau_des_temps'])) { |
@@ -217,25 +217,25 @@ discard block |
||
| 217 | 217 | $valeur_simple = array(); |
| 218 | 218 | foreach ($valeur as $v) { |
| 219 | 219 | if (is_array($v)) { |
| 220 | - $valeur_simple[] = 'array:' . count($v); |
|
| 220 | + $valeur_simple[] = 'array:'.count($v); |
|
| 221 | 221 | } elseif (is_object($v)) { |
| 222 | 222 | $valeur_simple[] = get_class($v); |
| 223 | 223 | } elseif (is_string($v)) { |
| 224 | - $valeur_simple[] = "'" . $v . "'"; |
|
| 224 | + $valeur_simple[] = "'".$v."'"; |
|
| 225 | 225 | } else { |
| 226 | 226 | $valeur_simple[] = $v; |
| 227 | 227 | } |
| 228 | 228 | } |
| 229 | 229 | $n = count($valeur); |
| 230 | - $valeur = (($n > 3) ? 'array:' . $n . ' ' : ''); |
|
| 231 | - $valeur .= '[' . join(', ', $valeur_simple) . ']'; |
|
| 230 | + $valeur = (($n > 3) ? 'array:'.$n.' ' : ''); |
|
| 231 | + $valeur .= '['.join(', ', $valeur_simple).']'; |
|
| 232 | 232 | } elseif (is_object($valeur)) { |
| 233 | 233 | $valeur = get_class($valeur); |
| 234 | 234 | } elseif (is_string($valeur)) { |
| 235 | - $valeur = "'" . $valeur . "'"; |
|
| 235 | + $valeur = "'".$valeur."'"; |
|
| 236 | 236 | } |
| 237 | - $res .= "\n<tr><td><strong>" . nl2br(entites_html($nom)) |
|
| 238 | - . "</strong></td><td>: " . nl2br(entites_html($valeur)) |
|
| 237 | + $res .= "\n<tr><td><strong>".nl2br(entites_html($nom)) |
|
| 238 | + . "</strong></td><td>: ".nl2br(entites_html($valeur)) |
|
| 239 | 239 | . "</td></tr>\n"; |
| 240 | 240 | } |
| 241 | 241 | |
@@ -263,10 +263,10 @@ discard block |
||
| 263 | 263 | $nom_code = $lieu->descr['nom']; |
| 264 | 264 | $skel = $lieu->descr['sourcefile']; |
| 265 | 265 | $h2 = parametre_url($href, 'var_mode_objet', $nom_code); |
| 266 | - $h3 = parametre_url($h2, 'var_mode_affiche', 'squelette') . '#L' . $ligne; |
|
| 266 | + $h3 = parametre_url($h2, 'var_mode_affiche', 'squelette').'#L'.$ligne; |
|
| 267 | 267 | $skel = "<a href='$h3'><b>$skel</b></a>"; |
| 268 | 268 | if ($boucle) { |
| 269 | - $h3 = parametre_url($h2 . $boucle, 'var_mode_affiche', 'boucle'); |
|
| 269 | + $h3 = parametre_url($h2.$boucle, 'var_mode_affiche', 'boucle'); |
|
| 270 | 270 | $boucle = "<a href='$h3'><b>$boucle</b></a>"; |
| 271 | 271 | } |
| 272 | 272 | } |
@@ -353,7 +353,7 @@ discard block |
||
| 353 | 353 | } |
| 354 | 354 | |
| 355 | 355 | // Requete erronee |
| 356 | - $err = "<b>" . _T('avis_erreur_mysql') . " $errno</b><br /><tt>\n" |
|
| 356 | + $err = "<b>"._T('avis_erreur_mysql')." $errno</b><br /><tt>\n" |
|
| 357 | 357 | . spip_htmlspecialchars($msg) |
| 358 | 358 | . "\n<br /><span style='color: red'><b>" |
| 359 | 359 | . spip_htmlspecialchars($query) |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | // https://code.spip.net/@trouve_boucle_debug |
| 369 | 369 | function trouve_boucle_debug($n, $nom, $debut = 0, $boucle = "") { |
| 370 | 370 | |
| 371 | - $id = $nom . $boucle; |
|
| 371 | + $id = $nom.$boucle; |
|
| 372 | 372 | if (is_array($GLOBALS['debug_objets']['sequence'][$id])) { |
| 373 | 373 | foreach ($GLOBALS['debug_objets']['sequence'][$id] as $v) { |
| 374 | 374 | |
@@ -419,7 +419,7 @@ discard block |
||
| 419 | 419 | } |
| 420 | 420 | } |
| 421 | 421 | } |
| 422 | - $incl = ',' . $reg[1] . '[.]\w$,'; |
|
| 422 | + $incl = ','.$reg[1].'[.]\w$,'; |
|
| 423 | 423 | |
| 424 | 424 | foreach ($GLOBALS['debug_objets']['sourcefile'] as $k => $v) { |
| 425 | 425 | if (preg_match($incl, $v)) { |
@@ -435,16 +435,13 @@ discard block |
||
| 435 | 435 | list($skel, $boucle, $ligne) = trouve_boucle_debug($n, $nom); |
| 436 | 436 | |
| 437 | 437 | if (!$boucle) { |
| 438 | - return !$ligne ? "" : |
|
| 439 | - (" (" . |
|
| 440 | - (($nom != $skel) ? _T('squelette_inclus_ligne') : |
|
| 441 | - _T('squelette_ligne')) . |
|
| 438 | + return !$ligne ? "" : (" (". |
|
| 439 | + (($nom != $skel) ? _T('squelette_inclus_ligne') : _T('squelette_ligne')). |
|
| 442 | 440 | " <a href='$self&var_mode_objet=$skel&var_mode_affiche=squelette&var_mode_ligne=$ligne#L$ligne'>$ligne</a>)"); |
| 443 | 441 | } else { |
| 444 | 442 | $self .= "&var_mode_objet=$skel$boucle&var_mode_affiche=boucle"; |
| 445 | 443 | |
| 446 | - return !$ligne ? " (boucle\n<a href='$self#$skel$boucle'>$boucle</a>)" : |
|
| 447 | - " (boucle $boucle ligne\n<a href='$self&var_mode_ligne=$ligne#L$ligne'>$ligne</a>)"; |
|
| 444 | + return !$ligne ? " (boucle\n<a href='$self#$skel$boucle'>$boucle</a>)" : " (boucle $boucle ligne\n<a href='$self&var_mode_ligne=$ligne#L$ligne'>$ligne</a>)"; |
|
| 448 | 445 | } |
| 449 | 446 | } |
| 450 | 447 | |
@@ -466,13 +463,13 @@ discard block |
||
| 466 | 463 | } |
| 467 | 464 | |
| 468 | 465 | $s = preg_replace(',<(\w[^<>]*)>([^<]*)<br />([^<]*)</\1>,', |
| 469 | - '<\1>\2</\1><br />' . "\n" . '<\1>\3</\1>', |
|
| 466 | + '<\1>\2</\1><br />'."\n".'<\1>\3</\1>', |
|
| 470 | 467 | $s); |
| 471 | 468 | |
| 472 | 469 | |
| 473 | 470 | $tableau = explode("<br />", $s); |
| 474 | 471 | |
| 475 | - $format = "<span style='float:left;display:block;width:50px;height:1px'><a id='L%d' style='background-color: white; visibility: " . ($nocpt ? 'hidden' : 'visible') . ";%s' href='#T%s' title=\"%s\">%0" . strval(@strlen(count($tableau))) . "d</a></span> %s<br />\n"; |
|
| 472 | + $format = "<span style='float:left;display:block;width:50px;height:1px'><a id='L%d' style='background-color: white; visibility: ".($nocpt ? 'hidden' : 'visible').";%s' href='#T%s' title=\"%s\">%0".strval(@strlen(count($tableau)))."d</a></span> %s<br />\n"; |
|
| 476 | 473 | |
| 477 | 474 | $format10 = str_replace('white', 'lightgrey', $format); |
| 478 | 475 | $formaterr = "color: red;"; |
@@ -516,7 +513,7 @@ discard block |
||
| 516 | 513 | . '" style="cursor: pointer;">' |
| 517 | 514 | . ($nocpt ? '' : _T('info_numero_abbreviation')) |
| 518 | 515 | . "</div> |
| 519 | - " . $res . "</div>\n"; |
|
| 516 | + " . $res."</div>\n"; |
|
| 520 | 517 | } |
| 521 | 518 | |
| 522 | 519 | // l'environnement graphique du debuggueur |
@@ -537,14 +534,14 @@ discard block |
||
| 537 | 534 | if (!empty($GLOBALS['debug_objets'][$mode][$fonc])) { |
| 538 | 535 | list($legend, $texte, $res2) = debusquer_source($fonc, $mode); |
| 539 | 536 | $texte .= $res2; |
| 540 | - } elseif (!empty($GLOBALS['debug_objets'][$mode][$fonc . 'tout'])) { |
|
| 541 | - $legend = _T('zbug_' . $mode); |
|
| 542 | - $texte = $GLOBALS['debug_objets'][$mode][$fonc . 'tout']; |
|
| 537 | + } elseif (!empty($GLOBALS['debug_objets'][$mode][$fonc.'tout'])) { |
|
| 538 | + $legend = _T('zbug_'.$mode); |
|
| 539 | + $texte = $GLOBALS['debug_objets'][$mode][$fonc.'tout']; |
|
| 543 | 540 | $texte = ancre_texte($texte, array('', '')); |
| 544 | 541 | } |
| 545 | 542 | } else { |
| 546 | 543 | if (strlen(trim($res))) { |
| 547 | - return "<img src='" . chemin_image('debug-xx.svg') . "' alt='afficher-masquer le debug' id='spip-debug-toggle' onclick=\"var x = document.getElementById('spip-debug'); (x.style.display == '' ? x.style.display = 'none' : x.style.display = '');\" /><div id='spip-debug'>$res</div>"; |
|
| 544 | + return "<img src='".chemin_image('debug-xx.svg')."' alt='afficher-masquer le debug' id='spip-debug-toggle' onclick=\"var x = document.getElementById('spip-debug'); (x.style.display == '' ? x.style.display = 'none' : x.style.display = '');\" /><div id='spip-debug'>$res</div>"; |
|
| 548 | 545 | } else { |
| 549 | 546 | // cas de l'appel sur erreur: montre la page |
| 550 | 547 | return isset($GLOBALS['debug_objets']['resultat']['tout']) |
@@ -554,7 +551,7 @@ discard block |
||
| 554 | 551 | } |
| 555 | 552 | } else { |
| 556 | 553 | $valider = charger_fonction('valider', 'xml'); |
| 557 | - $val = $valider($GLOBALS['debug_objets']['validation'][$fonc . 'tout']); |
|
| 554 | + $val = $valider($GLOBALS['debug_objets']['validation'][$fonc.'tout']); |
|
| 558 | 555 | // Si erreur, signaler leur nombre dans le formulaire admin |
| 559 | 556 | $GLOBALS['debug_objets']['validation'] = $val->err ? count($val->err) : ''; |
| 560 | 557 | list($texte, $err) = emboite_texte($val, $fonc, $self); |
@@ -565,14 +562,14 @@ discard block |
||
| 565 | 562 | } else { |
| 566 | 563 | $err = ": $err"; |
| 567 | 564 | } |
| 568 | - $legend = _T('validation') . ' ' . $err; |
|
| 565 | + $legend = _T('validation').' '.$err; |
|
| 569 | 566 | $res = $id = ''; |
| 570 | 567 | } |
| 571 | 568 | |
| 572 | 569 | return !trim($texte) ? '' : ( |
| 573 | - "<img src='" . chemin_image('debug-xx.svg') . "' alt='afficher-masquer le debug' id='spip-debug-toggle' onclick=\"var x = document.getElementById('spip-debug'); (x.style.display == '' ? x.style.display = 'none' : x.style.display = '');\" /><div id='spip-debug'>$res" |
|
| 570 | + "<img src='".chemin_image('debug-xx.svg')."' alt='afficher-masquer le debug' id='spip-debug-toggle' onclick=\"var x = document.getElementById('spip-debug'); (x.style.display == '' ? x.style.display = 'none' : x.style.display = '');\" /><div id='spip-debug'>$res" |
|
| 574 | 571 | . "<div id='debug_boucle'><fieldset$id><legend>" |
| 575 | - . "<a href='" . $self . "#f_" . substr($fonc, 0, 37) . "'> ↑ " |
|
| 572 | + . "<a href='".$self."#f_".substr($fonc, 0, 37)."'> ↑ " |
|
| 576 | 573 | . ($legend ? $legend : $mode) |
| 577 | 574 | . "</a></legend>" |
| 578 | 575 | . $texte |
@@ -584,7 +581,7 @@ discard block |
||
| 584 | 581 | // https://code.spip.net/@emboite_texte |
| 585 | 582 | function emboite_texte($res, $fonc = '', $self = '') { |
| 586 | 583 | $errs = $res->err; |
| 587 | - $texte = $res->entete . ($errs ? '' : $res->page); |
|
| 584 | + $texte = $res->entete.($errs ? '' : $res->page); |
|
| 588 | 585 | |
| 589 | 586 | if (!$texte and !$errs) { |
| 590 | 587 | return array(ancre_texte('', array('', '')), false); |
@@ -641,7 +638,7 @@ discard block |
||
| 641 | 638 | $err = "<h2 style='text-align: center'>" |
| 642 | 639 | . $i |
| 643 | 640 | . "<a href='#fin_err'>" |
| 644 | - . " " . _T('erreur_texte') |
|
| 641 | + . " "._T('erreur_texte') |
|
| 645 | 642 | . "</a></h2><table id='debut_err' style='width: 100%'>" |
| 646 | 643 | . $err |
| 647 | 644 | . " </table><a id='fin_err'></a>"; |
@@ -651,9 +648,9 @@ discard block |
||
| 651 | 648 | list($msg, $fermant, $ouvrant) = $errs[0]; |
| 652 | 649 | $rf = reference_boucle_debug($fermant, $fonc, $self); |
| 653 | 650 | $ro = reference_boucle_debug($ouvrant, $fonc, $self); |
| 654 | - $err = $msg . |
|
| 655 | - "<a href='#L" . $fermant . "'>$fermant</a>$rf<br />" . |
|
| 656 | - "<a href='#L" . $ouvrant . "'>$ouvrant</a>$ro"; |
|
| 651 | + $err = $msg. |
|
| 652 | + "<a href='#L".$fermant."'>$fermant</a>$rf<br />". |
|
| 653 | + "<a href='#L".$ouvrant."'>$ouvrant</a>$ro"; |
|
| 657 | 654 | |
| 658 | 655 | return array(ancre_texte($texte, array(array($ouvrant), array($fermant))), $err); |
| 659 | 656 | } |
@@ -685,7 +682,7 @@ discard block |
||
| 685 | 682 | $temps = !isset($GLOBALS['debug_objets']['profile'][$sourcefile]) ? '' : _T('zbug_profile', |
| 686 | 683 | array('time' => $GLOBALS['debug_objets']['profile'][$sourcefile])); |
| 687 | 684 | |
| 688 | - $res .= "<fieldset id='f_" . $nom . "'><legend>" |
|
| 685 | + $res .= "<fieldset id='f_".$nom."'><legend>" |
|
| 689 | 686 | . $t_skel |
| 690 | 687 | . ' ' |
| 691 | 688 | . $sourcefile |
@@ -700,7 +697,7 @@ discard block |
||
| 700 | 697 | . "'>" |
| 701 | 698 | . _T('zbug_calcul') |
| 702 | 699 | . "</a></legend>" |
| 703 | - . (!$temps ? '' : ("\n<span style='display:block;float:" . $GLOBALS['spip_lang_right'] . "'>$temps</span><br />")) |
|
| 700 | + . (!$temps ? '' : ("\n<span style='display:block;float:".$GLOBALS['spip_lang_right']."'>$temps</span><br />")) |
|
| 704 | 701 | . debusquer_contexte($contexte[$sourcefile]) |
| 705 | 702 | . (!$nav ? '' : ("<table width='100%'>\n$nav</table>\n")) |
| 706 | 703 | . "</fieldset>\n"; |
@@ -721,33 +718,33 @@ discard block |
||
| 721 | 718 | $nom = $boucle->id_boucle; |
| 722 | 719 | $req = $boucle->type_requete; |
| 723 | 720 | $crit = public_decompiler($boucle, $gram, 0, 'criteres'); |
| 724 | - $self2 = $self . "&var_mode_objet=" . $objet; |
|
| 725 | - |
|
| 726 | - $res .= "\n<tr style='background-color: " . |
|
| 727 | - ($i % 2 ? '#e0e0f0' : '#f8f8ff') . |
|
| 728 | - "'><td align='right'>$i</td><td>\n" . |
|
| 729 | - "<a class='debug_link_boucle' href='" . |
|
| 730 | - $self2 . |
|
| 731 | - "&var_mode_affiche=boucle#f_$nom_skel'>" . |
|
| 732 | - _T('zbug_boucle') . |
|
| 733 | - "</a></td><td>\n<a class='debug_link_boucle' href='" . |
|
| 734 | - $self2 . |
|
| 735 | - "&var_mode_affiche=resultat#f_$nom_skel'>" . |
|
| 736 | - _T('zbug_resultat') . |
|
| 737 | - "</a></td><td>\n<a class='debug_link_resultat' href='" . |
|
| 738 | - $self2 . |
|
| 739 | - "&var_mode_affiche=code#f_$nom_skel'>" . |
|
| 740 | - _T('zbug_code') . |
|
| 741 | - "</a></td><td>\n<a class='debug_link_resultat' href='" . |
|
| 742 | - str_replace('var_mode=', 'var_profile=', $self2) . |
|
| 743 | - "'>" . |
|
| 744 | - _T('zbug_calcul') . |
|
| 745 | - "</a></td><td>\n" . |
|
| 746 | - (($var_mode_objet == $objet) ? "<b>$nom</b>" : $nom) . |
|
| 747 | - "</td><td>\n" . |
|
| 748 | - $req . |
|
| 749 | - "</td><td>\n" . |
|
| 750 | - spip_htmlspecialchars($crit) . |
|
| 721 | + $self2 = $self."&var_mode_objet=".$objet; |
|
| 722 | + |
|
| 723 | + $res .= "\n<tr style='background-color: ". |
|
| 724 | + ($i % 2 ? '#e0e0f0' : '#f8f8ff'). |
|
| 725 | + "'><td align='right'>$i</td><td>\n". |
|
| 726 | + "<a class='debug_link_boucle' href='". |
|
| 727 | + $self2. |
|
| 728 | + "&var_mode_affiche=boucle#f_$nom_skel'>". |
|
| 729 | + _T('zbug_boucle'). |
|
| 730 | + "</a></td><td>\n<a class='debug_link_boucle' href='". |
|
| 731 | + $self2. |
|
| 732 | + "&var_mode_affiche=resultat#f_$nom_skel'>". |
|
| 733 | + _T('zbug_resultat'). |
|
| 734 | + "</a></td><td>\n<a class='debug_link_resultat' href='". |
|
| 735 | + $self2. |
|
| 736 | + "&var_mode_affiche=code#f_$nom_skel'>". |
|
| 737 | + _T('zbug_code'). |
|
| 738 | + "</a></td><td>\n<a class='debug_link_resultat' href='". |
|
| 739 | + str_replace('var_mode=', 'var_profile=', $self2). |
|
| 740 | + "'>". |
|
| 741 | + _T('zbug_calcul'). |
|
| 742 | + "</a></td><td>\n". |
|
| 743 | + (($var_mode_objet == $objet) ? "<b>$nom</b>" : $nom). |
|
| 744 | + "</td><td>\n". |
|
| 745 | + $req. |
|
| 746 | + "</td><td>\n". |
|
| 747 | + spip_htmlspecialchars($crit). |
|
| 751 | 748 | "</td></tr>"; |
| 752 | 749 | } |
| 753 | 750 | } |
@@ -774,7 +771,7 @@ discard block |
||
| 774 | 771 | } |
| 775 | 772 | // permettre le copier/coller facile |
| 776 | 773 | // $res = ancre_texte($req, array(), true); |
| 777 | - $res = "<div id='T" . md5($req) . "'>\n<pre>\n" . $req . "</pre>\n</div>\n"; |
|
| 774 | + $res = "<div id='T".md5($req)."'>\n<pre>\n".$req."</pre>\n</div>\n"; |
|
| 778 | 775 | // formatage et affichage des resultats bruts de la requete |
| 779 | 776 | $ress_req = spip_query($req); |
| 780 | 777 | $brut_sql = ''; |
@@ -784,10 +781,10 @@ discard block |
||
| 784 | 781 | $max_aff = defined('_MAX_DEBUG_AFF') ? _MAX_DEBUG_AFF : 50; |
| 785 | 782 | while ($retours_sql = sql_fetch($ress_req)) { |
| 786 | 783 | if ($num <= $max_aff) { |
| 787 | - $brut_sql .= "<h3>" . ($num == 1 ? $num . " sur " . sql_count($ress_req) : $num) . "</h3>"; |
|
| 784 | + $brut_sql .= "<h3>".($num == 1 ? $num." sur ".sql_count($ress_req) : $num)."</h3>"; |
|
| 788 | 785 | $brut_sql .= "<p>"; |
| 789 | 786 | foreach ($retours_sql as $key => $val) { |
| 790 | - $brut_sql .= "<strong>" . $key . "</strong> => " . spip_htmlspecialchars(couper($val, 150)) . "<br />\n"; |
|
| 787 | + $brut_sql .= "<strong>".$key."</strong> => ".spip_htmlspecialchars(couper($val, 150))."<br />\n"; |
|
| 791 | 788 | } |
| 792 | 789 | $brut_sql .= "</p>"; |
| 793 | 790 | } |
@@ -798,15 +795,15 @@ discard block |
||
| 798 | 795 | // ne pas afficher les $contexte_inclus |
| 799 | 796 | $view = preg_replace(",<\?php.+\?[>],Uims", "", $view); |
| 800 | 797 | if ($view) { |
| 801 | - $res2 .= "\n<br /><fieldset>" . interdire_scripts($view) . "</fieldset>"; |
|
| 798 | + $res2 .= "\n<br /><fieldset>".interdire_scripts($view)."</fieldset>"; |
|
| 802 | 799 | } |
| 803 | 800 | } |
| 804 | 801 | |
| 805 | 802 | } elseif ($affiche == 'code') { |
| 806 | 803 | $legend = $nom; |
| 807 | - $res = ancre_texte("<" . "?php\n" . $quoi . "\n?" . ">"); |
|
| 804 | + $res = ancre_texte("<"."?php\n".$quoi."\n?".">"); |
|
| 808 | 805 | } elseif ($affiche == 'boucle') { |
| 809 | - $legend = _T('zbug_boucle') . ' ' . $nom; |
|
| 806 | + $legend = _T('zbug_boucle').' '.$nom; |
|
| 810 | 807 | // Le compilateur prefixe le nom des boucles par l'extension du fichier source. |
| 811 | 808 | $gram = preg_match('/^([^_]+)_/', $objet, $r) ? $r[1] : ''; |
| 812 | 809 | $res = ancre_texte(public_decompiler($quoi, $gram, 0, 'boucle')); |
@@ -825,23 +822,23 @@ discard block |
||
| 825 | 822 | include_spip('public/assembler'); // pour inclure_balise_dynamique |
| 826 | 823 | include_spip('inc/texte'); // pour corriger_typo |
| 827 | 824 | |
| 828 | - return _DOCTYPE_ECRIRE . |
|
| 829 | - html_lang_attributes() . |
|
| 830 | - "<head>\n<title>" . |
|
| 831 | - ('SPIP ' . $GLOBALS['spip_version_affichee'] . ' ' . |
|
| 832 | - _T('admin_debug') . ' ' . $titre . ' (' . |
|
| 833 | - supprimer_tags(corriger_typo($GLOBALS['meta']['nom_site']))) . |
|
| 834 | - ")</title>\n" . |
|
| 835 | - "<meta http-equiv='Content-Type' content='text/html" . |
|
| 836 | - (($c = $GLOBALS['meta']['charset']) ? "; charset=$c" : '') . |
|
| 837 | - "' />\n" . |
|
| 825 | + return _DOCTYPE_ECRIRE. |
|
| 826 | + html_lang_attributes(). |
|
| 827 | + "<head>\n<title>". |
|
| 828 | + ('SPIP '.$GLOBALS['spip_version_affichee'].' '. |
|
| 829 | + _T('admin_debug').' '.$titre.' ('. |
|
| 830 | + supprimer_tags(corriger_typo($GLOBALS['meta']['nom_site']))). |
|
| 831 | + ")</title>\n". |
|
| 832 | + "<meta http-equiv='Content-Type' content='text/html". |
|
| 833 | + (($c = $GLOBALS['meta']['charset']) ? "; charset=$c" : ''). |
|
| 834 | + "' />\n". |
|
| 838 | 835 | http_script('', 'jquery.js') |
| 839 | - . "<link rel='stylesheet' href='" . url_absolue(find_in_path('spip_admin.css')) |
|
| 840 | - . "' type='text/css' />" . |
|
| 841 | - "</head>\n" . |
|
| 842 | - "<body style='margin:0 10px;'>\n" . |
|
| 843 | - "<div id='spip-debug-header'>" . |
|
| 844 | - $corps . |
|
| 845 | - inclure_balise_dynamique(balise_FORMULAIRE_ADMIN_dyn('spip-admin-float', $GLOBALS['debug_objets']), false) . |
|
| 836 | + . "<link rel='stylesheet' href='".url_absolue(find_in_path('spip_admin.css')) |
|
| 837 | + . "' type='text/css' />". |
|
| 838 | + "</head>\n". |
|
| 839 | + "<body style='margin:0 10px;'>\n". |
|
| 840 | + "<div id='spip-debug-header'>". |
|
| 841 | + $corps. |
|
| 842 | + inclure_balise_dynamique(balise_FORMULAIRE_ADMIN_dyn('spip-admin-float', $GLOBALS['debug_objets']), false). |
|
| 846 | 843 | '</div></body></html>'; |
| 847 | 844 | } |