| @@ -49,9 +49,9 @@ | ||
| 49 | 49 | */ |
| 50 | 50 | public function fileSystem() { |
| 51 | 51 | global $wp_filesystem; |
| 52 | 52 | // Getting directory list! |
| 53 | - $wpContentDir = 'wp-content'; | |
| 53 | + $wpContentDir = WP_CONTENT_DIR; | |
| 54 | 54 | $fSConfig = cssJSToolbox::$config->fileSystem; |
| 55 | 55 | // Directories to create! |
| 56 | 56 | $directories = array( |
| 57 | 57 | "{$wpContentDir}/{$fSConfig->contentDir}", |
| @@ -58,9 +58,9 @@ | ||
| 58 | 58 | "{$wpContentDir}/{$fSConfig->contentDir}/{$fSConfig->templatesDir}", |
| 59 | 59 | ); |
| 60 | 60 | // Delete all directories! |
| 61 | 61 | foreach ($directories as $dir) { |
| 62 | - $wp_filesystem->delete(ABSPATH . "/{$dir}", true); | |
| 62 | + $wp_filesystem->delete($dir, true); | |
| 63 | 63 | } |
| 64 | 64 | // Chaining! |
| 65 | 65 | return $this; |
| 66 | 66 | } |