cvs: pear /PhpDocumentor/phpDocumentor Io.inc

From: Date: Sat, 19 Nov 2005 00:32:58 +0000
Subject: cvs: pear /PhpDocumentor/phpDocumentor Io.inc
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-36370@lists.php.net to get a copy of this message
cellog Fri Nov 18 19:32:58 2005 EDT Modified files: /pear/PhpDocumentor/phpDocumentor Io.inc Log: remove notice if a file has no extension http://cvs.php.net/diff.php/pear/PhpDocumentor/phpDocumentor/Io.inc?r1=1.3&r2=1.4&ty=u Index: pear/PhpDocumentor/phpDocumentor/Io.inc diff -u pear/PhpDocumentor/phpDocumentor/Io.inc:1.3 pear/PhpDocumentor/phpDocumentor/Io.inc:1.4 --- pear/PhpDocumentor/phpDocumentor/Io.inc:1.3 Fri Nov 18 01:51:49 2005 +++ pear/PhpDocumentor/phpDocumentor/Io.inc Fri Nov 18 19:32:58 2005 @@ -21,14 +21,14 @@ * Class to handle file and user io opperations * * @author Joshua Eichorn <jeichorn@phpdoc.org> - * @version $Id: Io.inc,v 1.3 2005/11/18 06:51:49 drewish Exp $ + * @version $Id: Io.inc,v 1.4 2005/11/19 00:32:58 cellog Exp $ * @package phpDocumentor */ /** * Class to handle file and user io opperations * * @author Joshua Eichorn <jeichorn@phpdoc.org> - * @version $Id: Io.inc,v 1.3 2005/11/18 06:51:49 drewish Exp $ + * @version $Id: Io.inc,v 1.4 2005/11/19 00:32:58 cellog Exp $ * @package phpDocumentor */ class Io @@ -468,7 +468,14 @@ $path = substr(dirname($file),strlen(str_replace('\\','/',realpath($base_dir)))+1); if (!$path) $path = '/'; $parts = pathinfo($file); - $struc[$path][] = array('file' => $parts['basename'],'ext' => $parts['extension'],'path' => $file); + if (!isset($parts['extension'])) + { + $parts['extension'] = ''; + } + $struc[$path][] = array( + 'file' => $parts['basename'], + 'ext' => $parts['extension'], + 'path' => $file); } uksort($struc,'strnatcasecmp'); foreach($struc as $key => $ind)

« previous php.pear.cvs (#36370) next »