Changeset 39333 in spip-zone


Ignore:
Timestamp:
Jul 17, 2010, 10:21:26 PM (9 years ago)
Author:
kent1@…
Message:

La licence avant les crédits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/licence/licence_pipelines.php

    r39327 r39333  
    5959                if(preg_match(",<li [^>]*class=[\"']editer_credits.*>(.*)<\/li>,Uims",$flux['data'],$regs)){
    6060                        include_spip('inc/licence');
    61                         $ajouts .= recuperer_fond('prive/licence_document_saisies',array('id_document'=>$id_document,'licences' => $GLOBALS['licence_licences']));
    62                         $flux['data'] = preg_replace(",($regs[1]),Uims","\\1".$ajouts,$flux['data']);
     61                        $ajouts = recuperer_fond('prive/licence_document_saisies',array('id_document'=>$id_document,'licences' => $GLOBALS['licence_licences']));
     62                        $flux['data'] = preg_replace(",($regs[0]),Uims",$ajouts."\\1",$flux['data']);
    6363                }
    6464        }
Note: See TracChangeset for help on using the changeset viewer.