Ignore:
Timestamp:
Nov 1, 2006, 6:04:24 AM (18 years ago)
Author:
rvelices
Message:

fix: get_filename_wo_extension (check for ===false) and template make_filename
improvement: can retrieve template output outside the template

File:
1 edited

Legend:

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

    r1578 r1589  
    185185function get_filename_wo_extension( $filename )
    186186{
    187   return substr( $filename, 0, strrpos( $filename, '.' ) );
     187  $pos = strrpos( $filename, '.' );
     188  return ($pos===false) ? $filename : substr( $filename, 0, $pos);
    188189}
    189190
Note: See TracChangeset for help on using the changeset viewer.