/[drupal]/contributions/modules/wordfilter/wordfilter.module
ViewVC logotype

Diff of /contributions/modules/wordfilter/wordfilter.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.7.2.9.2.15, Fri Sep 11 05:32:23 2009 UTC revision 1.7.2.9.2.16, Mon Oct 12 19:49:27 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: wordfilter.module,v 1.7.2.9.2.14 2009/06/05 07:59:43 jaydub Exp $  // $Id: wordfilter.module,v 1.7.2.9.2.15 2009/09/11 05:32:23 jaydub Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 354  function wordfilter_filter_process($text Line 354  function wordfilter_filter_process($text
354          $new_string = '';          $new_string = '';
355          foreach ($split_text as $part) {          foreach ($split_text as $part) {
356            if (!preg_match('/^</', $part)) {            if (!preg_match('/^</', $part)) {
357              $new_string .= preg_replace($pattern, "$1". $replacement ."$2", $part);              $new_string .= preg_replace($pattern, "\${1}". $replacement ."\${2}", $part);
358            }            }
359            else {            else {
360              $new_string .= $part;              $new_string .= $part;
# Line 363  function wordfilter_filter_process($text Line 363  function wordfilter_filter_process($text
363          $text = ' '. $new_string .' ';          $text = ' '. $new_string .' ';
364        }        }
365        else {        else {
366          $text = preg_replace($pattern, "$1". $replacement ."$2", $text);          $text = preg_replace($pattern, "\${1}". $replacement ."\${2}", $text);
367        }        }
368      }      }
369    }    }

Legend:
Removed from v.1.7.2.9.2.15  
changed lines
  Added in v.1.7.2.9.2.16

  ViewVC Help
Powered by ViewVC 1.1.2