summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArto Bendiken2006-12-02 16:27:30 (GMT)
committerArto Bendiken2006-12-02 16:27:30 (GMT)
commit005e7747602f88dcde82e22acf5e8d4dee9f9d76 (patch)
tree431b699c7ea50a307e85c3fd8693a18eecbbc755
parentea6683e28dd66f167a13ff1ba48fb01b14b982b9 (diff)
Merged bug fix for #100576 from HEAD.
-rw-r--r--boost.helpers.inc14
1 files changed, 14 insertions, 0 deletions
diff --git a/boost.helpers.inc b/boost.helpers.inc
index ebe67f8..40085ad 100644
--- a/boost.helpers.inc
+++ b/boost.helpers.inc
@@ -81,3 +81,17 @@ function _boost_symlink($target, $link) {
}
//////////////////////////////////////////////////////////////////////////////
+// PHP4 COMPATIBILITY
+
+if (!function_exists('file_put_contents')) {
+ function file_put_contents($filename, $data) {
+ if ($fp = fopen($filename, 'wb')) {
+ fwrite($fp, $data);
+ fclose($fp);
+ return filesize($filename);
+ }
+ return FALSE;
+ }
+}
+
+//////////////////////////////////////////////////////////////////////////////