PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 3.3.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v3.3.1
3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 All 138 releases
← All changes | includes/Core/Util/Log.php +6 -4 2.10.03.3.1 View file →
@@ -52,14 +52,16 @@
52 52 $pathArr = explode('/', $path); // like "fieldname/user => [Fieldname, user]
53 53 foreach ($pathArr as $d) {
54 54 $rootDir .= $d . DIRECTORY_SEPARATOR;
55 55 if (!realpath($rootDir)) {
56 - mkdir($rootDir);
56 + wp_mkdir_p($rootDir);
57 57 }
58 58 }
59 59 $fullPath = $rootDir . $fileName;
60 - $file = fopen($fullPath, $fileOpenMode);
61 - fwrite($file, $log);
62 - fclose($file);
60 + if ('a' === $fileOpenMode) {
61 + FileHandler::appendFile($fullPath, $log);
62 + } else {
63 + FileHandler::writeFile($fullPath, $log);
64 + }
63 65 return true;
64 66 }
65 67 }