/[drupal]/contributions/modules/pathauto/pathauto.inc
ViewVC logotype

Diff of /contributions/modules/pathauto/pathauto.inc

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

revision 1.45.2.2, Sat Oct 17 17:45:52 2009 UTC revision 1.45.2.3, Tue Oct 20 17:52:12 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: pathauto.inc,v 1.45.2.1 2009/03/21 00:28:54 freso Exp $  // $Id: pathauto.inc,v 1.45.2.2 2009/10/17 17:45:52 greggles Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 202  function pathauto_cleanstring($string, $ Line 202  function pathauto_cleanstring($string, $
202      // Trim any leading or trailing separators (note the need to      // Trim any leading or trailing separators (note the need to
203      $output = preg_replace("/^$seppattern+|$seppattern+$/", '', $output);      $output = preg_replace("/^$seppattern+|$seppattern+$/", '', $output);
204    
205        // Replace trailing separators around slashes.
206        $output = preg_replace("/$seppattern\/|\/$seppattern/", "/", $output);
207    
208      // Replace multiple separators with a single one      // Replace multiple separators with a single one
209      $output = preg_replace("/$seppattern+/", "$separator", $output);      $output = preg_replace("/$seppattern+/", "$separator", $output);
210    }    }

Legend:
Removed from v.1.45.2.2  
changed lines
  Added in v.1.45.2.3

  ViewVC Help
Powered by ViewVC 1.1.2