Changeset 1729


Ignore:
Timestamp:
Oct 14, 2010, 12:27:32 AM (10 years ago)
Author:
goya
Message:

Evite la duplication d'alertes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/mail/templates/_sendAlerteTxt.php

    r1715 r1729  
    2222  $text = preg_replace('/ *\n+ */', ' ', implode('...', $printable));
    2323  if (strlen($text) > 700) {
    24         $text = substr($text, 0, 700).'...';
     24        $text = preg_replace('/[^ ]*$/', '', substr($text, 0, 700)).'...';
    2525  }
    2626  $text = str_replace($titre, '', $text);
     
    3737<?php echo sfConfig::get('app_base_url').'/'.preg_replace('/symfony\/?/', '', url_for('alerte/delete?verif='.$alerte->getVerif())); ?>
    3838
     39<?php if ($alerte->citoyen_id) : ?>
    3940L'interface vous permettant de gérer vos alertes :
    4041<?php echo sfConfig::get('app_base_url').'/'.preg_replace('/symfony\/?/', '', url_for('alerte/list')); ?>
     42<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.