]> git.mjollnir.org Git - moodle.git/commitdiff
Added backup_required_functions to pre-check required functions in
authorstronk7 <stronk7>
Thu, 12 Jun 2003 15:33:25 +0000 (15:33 +0000)
committerstronk7 <stronk7>
Thu, 12 Jun 2003 15:33:25 +0000 (15:33 +0000)
backup/restore process.

backup/lib.php

index 8df4721259889f791e08ebddb73f48fdb15b69ad..4e83c0db7e59ebfb9df2efd54b66c4c0a31c21ab 100644 (file)
         return addslashes(utf8_decode($data));
     }
 
+    //This function is used to check that every necessary function to 
+    //backup/restore exists in the current php installation. Thanks to
+    //gregb@crowncollege.edu by the idea.
+    function backup_required_functions() {
+
+        if(!function_exists('utf8_encodes') {
+            error('You need to add utf8 support to your PHP installation');  
+        }
+
+    }
+    
+
 ?>