Changeset 1661

Show
Ignore:
Timestamp:
22-03-11 23:16:33 (3 years ago)
Author:
work@…
Message:

- partly reverted the previous change (else instead of else if)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/Config.groovy

    r1658 r1661  
    135135if (GrailsUtil.Environment.current == Environment.TEST) { 
    136136    uploads.uploadDir = "webtestfiles" 
    137 } else 
    138 if (GrailsUtil.Environment.current == Environment.DEVELOPMENT) { 
     137} else { 
    139138    uploads.uploadDir = (new File("/tmp")?.canWrite()) ? "/tmp" : "fileuploads"     
    140139}