Changeset 19091 for lang/php

Show
Ignore:
Timestamp:
09/10/08 00:46:11 (2 months ago)
Author:
sasezaki
Message:

lang/php/Diggin_CDDB: phpはこんすとらくたでれいがいよばないドジっこでしたね

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/php/Diggin_CDDB/library/Diggin/CDDB/Application/CDex.php

    r19075 r19091  
    2929    public function __construct($path = null) 
    3030    { 
    31         $this->setLocalCDDBDirPath($path); 
     31        if ($path) $this->setLocalCDDBDirPath($path); 
    3232    } 
    3333     
    3434    public function setLocalCDDBDirPath($path) 
    3535    { 
    36         $path = realpath($path); 
    37         if ($path === false) { 
     36        if (!$path) { 
    3837            require_once 'Diggin/CDDB/Application/Exception.php'; 
    39             throw new Diggin_CDDB_Application_Exception('not valid path'); 
     38            throw new Diggin_CDDB_Application_Exception('Not valid path name'.$path); 
     39        } else {             
     40            if (!$path = realpath($path)) { 
     41                require_once 'Diggin/CDDB/Application/Exception.php'; 
     42                throw new Diggin_CDDB_Application_Exception('not valid path'.$path);                 
     43            } 
    4044        } 
    4145