Changeset 27248 in spip-zone


Ignore:
Timestamp:
Mar 12, 2009, 2:56:45 PM (10 years ago)
Author:
cy_altern@…
Message:

l'insertion de la balise de navigation doit se faire *après* la balise body...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_stable_/skiplink/insere_skiplink.php

    r27221 r27248  
    1313        $raccourcis = recuperer_fond('raccourcis', array('lang'=>$GLOBALS['spip_lang'], 'recherche'=>$recherche_existe));
    1414        preg_match(',<body\b.*?>,i', $page, $regs);
     15 
    1516        if ($regs)
    16                 $page = substr_replace($page, $raccourcis, strpos($page, $regs[0]), 0);
     17                $page = substr_replace($page, $raccourcis, (strpos($page, $regs[0]) + strlen($regs[0])), 0);
    1718        $remonter = recuperer_fond('remonter', array('lang'=>$GLOBALS['spip_lang']));
    1819        preg_match(',<\/body\b.*?>,i', $page, $regs);
Note: See TracChangeset for help on using the changeset viewer.