Changeset 1549

Show
Ignore:
Timestamp:
03/08/08 16:46:41 (2 months ago)
Author:
Neal
Message:

Changed sef_friendly so that it does not prepend a dash to the beginning of a string.
Modified the fancy file based URL scheme to put dashes around titles in the right place.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/punbb-1.3-dev/upload/include/functions.php

    r1539 r1549  
    15241524        $str = preg_replace(array('/[^a-z0-9\s]/', '/[\s]+/'), array('', '-'), $str); 
    15251525 
    1526         return $str != '-' ? '-'.trim($str, '-') : ''; 
     1526        return $str != '-' ? trim($str, '-') : ''; 
    15271527} 
    15281528 
  • branches/punbb-1.3-dev/upload/include/url/File_based_(fancy).php

    r1492 r1549  
    4141        'edit'                                                  =>      'edit$1.html', 
    4242        'email'                                                 =>      'email$1.html', 
    43         'forum'                                                 =>      'forum$1$2.html', 
     43        'forum'                                                 =>      'forum$1-$2.html', 
    4444        'forum_rss'                                             =>      'forum$1-rss.html', 
    4545        'forum_atom'                                    =>      'forum$1-atom.html', 
     
    7474        'search_user_topics'                    =>      'search-topics-user$1.html', 
    7575        'subscribe'                                             =>      'subscribe$1.html', 
    76         'topic'                                                 =>      'topic$1$2.html', 
     76        'topic'                                                 =>      'topic$1-$2.html', 
    7777        'topic_rss'                                             =>      'topic$1-rss.html', 
    7878        'topic_atom'                                    =>      'topic$1-atom.html', 
    79         'topic_new_posts'                               =>      'topic$1$2new-posts.html', 
     79        'topic_new_posts'                               =>      'topic$1-$2-new-posts.html', 
    8080        'topic_last_post'                               =>      'topic$1last-post.html', 
    8181        'unsubscribe'                                   =>      'unsubscribe$1.html',