Changeset 5455
- Timestamp:
- 09/07/08 17:05:24 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs-modules/patientnotes/branches/example/web/src/org/openmrs/module/patientnotes/web/controller/ImageController.java
r5421 r5455 8 8 import org.springframework.util.FileCopyUtils; 9 9 import org.openmrs.util.OpenmrsUtil; 10 import org.openmrs.api.context.Context; 10 11 11 12 import javax.servlet.http.HttpServletRequest; … … 41 42 String fileName = ServletRequestUtils.getRequiredStringParameter(httpServletRequest, "name"); 42 43 43 String typePath = "patientnotes/userfiles/image"; 44 String typePath = Context.getAdministrationService().getGlobalProperty("obs.complex_obs_dir"); 45 if(typePath == null) { 46 typePath = "patientnotes/userfiles/image"; 47 } 48 44 49 File typeDir = OpenmrsUtil.getDirectoryInApplicationDataDirectory(typePath); 45 50