Plugin Directory

Changeset 1589074


Ignore:
Timestamp:
02/04/2017 09:27:14 PM (9 years ago)
Author:
respectzone
Message:

gestion des accents 1.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • respectzone-comment/trunk/respectzone_comment.php

    r1588976 r1589074  
    44Plugin URI: https://www.respectzone.org/
    55Description:
    6 Version: 1.5
     6Version: 1.6
    77Author: Alex SEBBANE
    88Author URI:
     
    158158    foreach($tableau as $elem ){
    159159        $mystring = $comment_text;
    160         $findme   = utf8_decode($elem);
    161                 $pos = strpos($mystring, $findme);
    162                 if ($pos === false) {
     160        //$findme   = utf8_decode($elem);
     161        $pos = strpos($mystring, $elem);
     162        if ($pos === false) {
    163163            //rien a faire
    164164        } else {
    165165            //$comment_text = str_replace($findme,getrandomalias($findme),$mystring);
    166             $comment_text = preg_replace("/\\b".$findme."\\b/",respectzone_comment_getrandomalias($findme),$mystring);
     166            $comment_text = preg_replace("/\\b".$elem."\\b/",respectzone_comment_getrandomalias($elem),$mystring);
    167167            continue;
    168168        }
Note: See TracChangeset for help on using the changeset viewer.