Changeset 3087


Ignore:
Timestamp:
Jan 29, 2013, 1:10:44 AM (8 years ago)
Author:
roux
Message:

fix plural for multiple alineas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/amendement/templates/showSuccess.php

    r3086 r3087  
    5454<div class="texte_intervention">
    5555  <?php $texte = $amendement->getTexte();
    56   if ($titreloi && preg_match('/alin..?as?\D\D?(\d+)[^\d]/', $texte, $match)) {
    57     $link = link_to('alinéa '.$match[1], '@loi_article?loi='.$titreloi->texteloi_id.'&article='.$art.'#alinea_'.$match[1]);
     56  if ($titreloi && preg_match('/alin..?a(s)?\D\D?(\d+)[^\d]/', $texte, $match)) {
     57    $link = link_to('alinéa'.$match[1].' '.$match[2], '@loi_article?loi='.$titreloi->texteloi_id.'&article='.$art.'#alinea_'.$match[1]);
    5858    $texte = preg_replace('/(alin..?as?\D\D?\d+)([^\d])/', $link.'\2', $texte);
    5959  }
Note: See TracChangeset for help on using the changeset viewer.