Changeset 11831

Show
Ignore:
Timestamp:
07/25/11 21:10:30 (22 months ago)
Author:
patdenice
Message:

bug:2386
Bug in tag urls if tag start with a number

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_url.inc.php

    r9353 r11831  
    508508  elseif ( 'tags' == @$tokens[$next_token] ) 
    509509  { 
     510    global $conf; 
     511 
    510512    $page['section'] = 'tags'; 
    511513    $page['tags'] = array(); 
     
    524526        break; 
    525527 
    526       if ( preg_match('/^(\d+)(?:-(.*))?/', $tokens[$i], $matches) ) 
     528      if ( $conf['tag_url_style'] != 'tag' and preg_match('/^(\d+)(?:-(.*)|)$/', $tokens[$i], $matches) ) 
    527529      { 
    528530        array_push($requested_tag_ids, $matches[1]);