/[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.52, Sat Oct 17 17:45:10 2009 UTC revision 1.53, Tue Oct 20 17:52:41 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: pathauto.inc,v 1.51 2009/03/21 00:24:28 freso Exp $  // $Id: pathauto.inc,v 1.52 2009/10/17 17:45:10 greggles Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 246  function pathauto_cleanstring($string, $ Line 246  function pathauto_cleanstring($string, $
246      // Trim any leading or trailing separators (note the need to      // Trim any leading or trailing separators (note the need to
247      $output = preg_replace("/^$seppattern+|$seppattern+$/", '', $output);      $output = preg_replace("/^$seppattern+|$seppattern+$/", '', $output);
248    
249        // Replace trailing separators around slashes.
250        $output = preg_replace("/$seppattern\/|\/$seppattern/", "/", $output);
251    
252      // Replace multiple separators with a single one      // Replace multiple separators with a single one
253      $output = preg_replace("/$seppattern+/", "$separator", $output);      $output = preg_replace("/$seppattern+/", "$separator", $output);
254    }    }

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

  ViewVC Help
Powered by ViewVC 1.1.2