Changeset 2445


Ignore:
Timestamp:
Nov 2, 2011, 5:00:36 AM (9 years ago)
Author:
komodo
Message:

display titres auditions correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/branches/senat/project/lib/model/doctrine/Section.class.php

    r2438 r2445  
    9393    if (preg_match('/auditions? /i', $titre)) {
    9494      $titre = preg_replace('/audition/', 'Audition', $titre);
    95       $titre = preg_replace('/([, ])m([mle\.]+) (.)(\S+) (.)(\S+)/', '\\1M\\2 \U\\3\\4 \U\\5\\6', $titre);
     95      $titre = preg_replace('/([, ])m([mle\.]+) (.)(\S+) (d[ulea\'\s]+)?(.)(\S+)/e', '"\\1M\\2 ".strtoupper("\\3")."\\4 \\5".strtoupper("\\6")."\\7"', $titre);
    9696    }
    9797    return $titre;
Note: See TracChangeset for help on using the changeset viewer.