Ignore:
Timestamp:
May 6, 2008 9:21:27 AM (16 years ago)
Author:
quinn
Message:

Added filePutContents to emulate PHP5's file_put_content() function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Currency.inc.php

    r329 r330  
    111111    {
    112112        $app =& App::getInstance();
    113        
     113
    114114        $cache_file_path = sprintf('%s/%s-to-%s', $this->getParam('cache_dir'), $base, $target);
    115115        $cache_file_mtime = @filemtime($cache_file_path);
     
    129129                    return false;
    130130                }
    131             } else if ($this->getParam('cache_result') && !file_put_contents($cache_file_path, $value, LOCK_EX)) {
     131            } else if ($this->getParam('cache_result') && !filePutContents($cache_file_path, $value, LOCK_EX)) {
    132132                $app->logMsg(sprintf('Failed writing to target rate file: %s', $cache_file_path), LOG_ERR, __FILE__, __LINE__);
    133133                return false;
Note: See TracChangeset for help on using the changeset viewer.