PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 2.15.3
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v2.15.3
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 +4 -6 3.3.12.15.3 View file →
@@ -52,16 +52,14 @@
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 - wp_mkdir_p($rootDir);
56 + mkdir($rootDir);
57 57 }
58 58 }
59 59 $fullPath = $rootDir . $fileName;
60 - if ('a' === $fileOpenMode) {
61 - FileHandler::appendFile($fullPath, $log);
62 - } else {
63 - FileHandler::writeFile($fullPath, $log);
64 - }
60 + $file = fopen($fullPath, $fileOpenMode);
61 + fwrite($file, $log);
62 + fclose($file);
65 63 return true;
66 64 }
67 65 }