Changeset 27249 in spip-zone


Ignore:
Timestamp:
Mar 12, 2009, 2:57:07 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_/noie/insere_campagne.php

    r27212 r27249  
    1616        || preg_match(',<body\b.*?>,i', $page, $regs);
    1717        if ($regs)
    18                 $page = substr_replace($page, $campagne, strpos($page, $regs[0]), 0);
     18                $page = substr_replace($page, $campagne, (strpos($page, $regs[0]) + strlen($regs[0])), 0);
    1919
    2020        return $page;
Note: See TracChangeset for help on using the changeset viewer.