Skip to content

Commit 3cdb7e9

Browse files
authored
Update ces_module_backup.php
1 parent 0fc39a6 commit 3cdb7e9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ces_module_backup.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php
1+
<?php
2+
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
23
class Copy {
34

45
function recursive_copy($src, $dst) {
@@ -50,8 +51,8 @@ function recursive_copy($src, $dst) {
5051

5152
$fix_dst = isset($json['default_copy_path']) ? $current_path . $json['default_copy_path'] . '/' : $current_path;
5253

53-
require_once $current_path . $json['default_path'] . '/admin/config.php';
54-
require_once $current_path . $json['default_path'] . '/config.php';
54+
include_once $current_path . $json['default_path'] . '/admin/config.php';
55+
include_once $current_path . $json['default_path'] . '/config.php';
5556

5657
foreach ($json['all_files'] as $key => $folder) {
5758
$copy->recursive_copy($current_path . $json['default_path'] . '/' . $folder, $fix_dst . $folder);

0 commit comments

Comments
 (0)