Changeset 553

Show
Ignore:
Timestamp:
04/17/07 22:36:21 (2 years ago)
Author:
schst
Message:

Bugfix: check, whether dir or file is writable

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/star/StarClassRegistry.php

    r532 r553  
    177177 
    178178            $cacheFile = $libPath . '/.cache'; 
    179             if (!is_writable($cacheFile)) { 
     179            if (!is_writable($libPath) && !is_writable($cacheFile)) { 
    180180                throw new StarException("Unable to write starRegistry cache file to {$cacheFile}."); 
    181181            }