Changeset 1228


Ignore:
Timestamp:
Apr 21, 2006, 2:03:46 AM (18 years ago)
Author:
rvelices
Message:

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:
branches/branch-1_6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/include/section_init.inc.php

    r1131 r1228  
    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"];
  • branches/branch-1_6/tools/create_listing_file.php

    r1144 r1228  
    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.