Changeset 3471

Show
Ignore:
Timestamp:
01/23/06 23:15:17 (3 years ago)
Author:
matt
Message:

Compat function, fixes #2319

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/functions-compat.php

    r3400 r3471  
    4848} 
    4949 
     50/* compatibility with PHP versions older than 4.3 */ 
     51if ( !function_exists('file_get_contents') ) { 
     52    function file_get_contents( $file ) { 
     53        $file = file($file); 
     54        return !$file ? false : implode('', $file); 
     55    } 
     56} 
     57 
    5058if (!defined('CASE_LOWER')) { 
    5159    define('CASE_LOWER', 0);