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:
parent
fdbb8f74ad
commit
75e1261c37
|
@ -27,9 +27,15 @@ function comicpress_notice_debug() {
|
||||||
|
|
||||||
if (empty($error)) {
|
if (empty($error)) {
|
||||||
// Check Comics Folder
|
// 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[] = 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 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.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue