Changeset 1865 in ExiteCMS


Ignore:
Timestamp:
10/18/08 10:48:30 (3 years ago)
Author:
hverton
Message:

fixed PHP notice error when the svn filename doesn't have an extension

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/ExiteCMS/tracsvn/php-files/modules/tracsvn/tracsvn_include.php

    r1807 r1865  
    132132    // check what to do with this file 
    133133    $parts = pathinfo($svnfile['path']); 
     134    if (!isset($parts['extension'])) { 
     135        $parts['extension'] = ""; 
     136    } 
    134137    $geshi_processor = isset($geshi_map[$parts['extension']]) ? $geshi_map[$parts['extension']] : "" ; 
    135138    $is_image = in_array(".".$parts['extension'], $imagetypes) ? true : false ; 
Note: See TracChangeset for help on using the changeset viewer.