Changeset 7745 for trunk


Ignore:
Timestamp:
Apr 14, 2010, 9:18:03 AM (15 years ago)
Author:
Pieter Naber
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/inc/KMLFile.class.php

    r7725 r7745  
    112112
    113113                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__);
    116116
    117117                trigger_log(SYSLOG_DEBUG, 'Writing file "' . $filename . '"', __FILE__, __LINE__);
    118                 fwrite($file,$toString());
     118                $file->write($file,$this->toString());
    119119
    120120                trigger_log(SYSLOG_DEBUG, 'Closing file "' . $filename . '"', __FILE__, __LINE__);
Note: See TracChangeset for help on using the changeset viewer.