Changeset 905


Ignore:
Timestamp:
09/22/07 23:09:36 (4 years ago)
Author:
epithet
Message:

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

File:
1 edited

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        } 
Note: See TracChangeset for help on using the changeset viewer.