Changeset 11831


Ignore:
Timestamp:
Jul 25, 2011, 9:10:30 PM (9 years ago)
Author:
patdenice
Message:

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

File:
1 edited

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