From 75e1261c3727bcc54923fc56abe56c40c6c2adc0 Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Wed, 6 Jan 2010 04:18:08 -0800 Subject: [PATCH] Modify to the comicpress-debug.php to check the path for WPMU files and give error if those comic directories were not created. Signed-off-by: Philip M. Hofer (Frumph) --- comicpress-debug.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/comicpress-debug.php b/comicpress-debug.php index a45284a..c3a69e5 100644 --- a/comicpress-debug.php +++ b/comicpress-debug.php @@ -27,9 +27,15 @@ function comicpress_notice_debug() { if (empty($error)) { // Check Comics Folder - if (!is_dir(ABSPATH . '/' . $comic_folder)) { + $document_root = ABSPATH; + + if (function_exists('cpm_wpmu_modify_path')) { + $document_root = cpm_wpmu_modify_path($document_root); + } + if (!is_dir($document_root .'/'. $comic_folder)) { $error[] = array('header', __('Comics Folder is not configured and is unable to be found.','comicpress')); $error[] = __('ComicPress stores the files it uses inside a specific directory and that directory is set from within ComicPress Manager. When this error is present it means that the theme is unable to find the appropriate directory to read the comics from.','comicpress'); + $error[] = __('ComicPress Manager - Manager Config will allow you to create the directories needed.'); } }