diff options
Diffstat (limited to 'includes/SeleniumWebSettings.php')
-rw-r--r-- | includes/SeleniumWebSettings.php | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/includes/SeleniumWebSettings.php b/includes/SeleniumWebSettings.php index 56afa929..34d829ca 100644 --- a/includes/SeleniumWebSettings.php +++ b/includes/SeleniumWebSettings.php @@ -201,21 +201,3 @@ function switchToTestResources( $testResourceName, $switchDB = true ) { $testUploadPath = getTestUploadPathFromResourceName( $testResourceName ); $wgUploadPath = $testUploadPath; } - -function wfRecursiveRemoveDir( $dir ) { - // taken from http://de3.php.net/manual/en/function.rmdir.php#98622 - if ( is_dir( $dir ) ) { - $objects = scandir( $dir ); - foreach ( $objects as $object ) { - if ( $object != "." && $object != ".." ) { - if ( filetype( $dir . '/' . $object ) == "dir" ) { - wfRecursiveRemoveDir( $dir . '/' . $object ); - } else { - unlink( $dir . '/' . $object ); - } - } - } - reset( $objects ); - rmdir( $dir ); - } -}
\ No newline at end of file |