Changeset 7745 for trunk/src/inc
- Timestamp:
- Apr 14, 2010, 9:18:03 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/inc/KMLFile.class.php
r7725 r7745 112 112 113 113 trigger_log(SYSLOG_DEBUG, 'Opening the file "' . $filename . '"', __FILE__, __LINE__); 114 $file = fopen("$filename","w")115 or exit(trigger_log(SYSLOG_ERR, 'Opening the file "' . $filename . '"', __FILE__, __LINE__));114 $file = new FileHandler($filename, 'w') 115 or trigger_log(SYSLOG_ERR, 'Opening the file "' . $filename . '"', __FILE__, __LINE__); 116 116 117 117 trigger_log(SYSLOG_DEBUG, 'Writing file "' . $filename . '"', __FILE__, __LINE__); 118 fwrite($file,$toString());118 $file->write($file,$this->toString()); 119 119 120 120 trigger_log(SYSLOG_DEBUG, 'Closing file "' . $filename . '"', __FILE__, __LINE__);
Note:
See TracChangeset
for help on using the changeset viewer.