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) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2010-01-06 04:18:08 -08:00
parent fdbb8f74ad
commit 75e1261c37
1 changed files with 7 additions and 1 deletions

View File

@ -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.');
}
}