Changeset 1229 for trunk


Ignore:
Timestamp:
Apr 21, 2006, 2:04:11 AM (19 years ago)
Author:
rvelices
Message:

merge r1228 from branch-1_6 into trunk

bug 345: cannot browse categories (Club Internet modified web server provides
PATH_INFO even if it is empty)

fix 339: also added in create_listing_file.php

Location:
trunk
Files:
2 edited

Legend:

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

    r1131 r1229  
    5454$page['section'] = 'categories';
    5555
    56 if ( isset($_SERVER["PATH_INFO"]) )
     56if ( isset($_SERVER["PATH_INFO"]) and !empty($_SERVER["PATH_INFO"]) )
    5757{
    5858  $rewritten = $_SERVER["PATH_INFO"];
  • trunk/tools/create_listing_file.php

    r1145 r1229  
    166166    $iptc['keywords'] = preg_replace('/^,+|,+$/', '', $iptc['keywords']);
    167167  }
    168 
     168  $iptc['keywords'] = implode(
     169               ',',
     170               array_unique(
     171                 explode(
     172                   ',',
     173                   $iptc['keywords']
     174                   )
     175                 )
     176               );
    169177  return $iptc;
    170178}
Note: See TracChangeset for help on using the changeset viewer.