Changeset ff73e02 in github for program/lib/html2text.php


Ignore:
Timestamp:
Aug 6, 2008 5:25:45 AM (5 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
2864204
Parents:
f0726b9
Message:
  • fread() replaced by file_get_contents(), see comments in #1484880
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/lib/html2text.php

    r47124c22 rff73e02  
    275275    function set_html( $source, $from_file = false ) 
    276276    { 
    277         $this->html = $source; 
    278  
    279277        if ( $from_file && file_exists($source) ) { 
    280             $fp = fopen($source, 'r'); 
    281             $this->html = fread($fp, filesize($source)); 
    282             fclose($fp); 
    283         } 
     278            $this->html = file_get_contents($source); 
     279        } 
     280        else 
     281            $this->html = $source; 
    284282 
    285283        $this->_converted = false; 
Note: See TracChangeset for help on using the changeset viewer.