Show
Ignore:
Timestamp:
09/22/07 23:09:36 (14 months ago)
Author:
epithet
Message:

Add 'slugify' plugin filter to Utils::slugify() so that plugins can alter its behavior.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/system/classes/utils.php

    r899 r905  
    612612    public static function slugify( $string ) 
    613613    { 
    614         $slug= rtrim( strtolower( preg_replace( '/[^a-z0-9%_\-]+/i', '-', $string ) ), '-' );        
     614        $slug= rtrim( strtolower( preg_replace( '/[^a-z0-9%_\-]+/i', '-', $string ) ), '-' ); 
     615        $slug= Plugins::filter('slugify', $slug, $string);   
    615616        return $slug; 
    616617    }