Changeset 59857 in spip-zone


Ignore:
Timestamp:
Mar 27, 2012, 8:32:16 PM (7 years ago)
Author:
fil@…
Message:

report de [59855]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/textwheel/wheels/spip/spip-paragrapher.php

    r59005 r59857  
    2727        }
    2828
    29         $t = str_replace(_AUTOBR."\n"."<br", "<br", $t); #manque /i
    30         $reg = ',(<br\b[^>]*>\s*)'.preg_quote(_AUTOBR."\n", ',').",iS";
     29        if (_AUTOBR) {
     30                $t = str_replace(_AUTOBR."\n"."<br", "<br", $t); #manque /i
     31                $reg = ',(<br\b[^>]*>\s*)'.preg_quote(_AUTOBR."\n", ',').",iS";
    3132
    32         $t = preg_replace($reg, "\1", $t);
     33                $t = preg_replace($reg, '\1', $t);
     34        }
    3335
    3436        return $t;
Note: See TracChangeset for help on using the changeset viewer.