diff --git a/comicpress_manager_admin.php b/comicpress_manager_admin.php
index 7db65e0..f31a340 100644
--- a/comicpress_manager_admin.php
+++ b/comicpress_manager_admin.php
@@ -2092,7 +2092,9 @@ function cpm_show_comicpress_details() {
__('Archive folder:', 'comicpress-manager'),
'rss' => __('RSS feed folder:', 'comicpress-manager'))
- as $type => $title) { ?>
+ as $type => $title) {
+ $realpath = realpath(CPM_DOCUMENT_ROOT . '/' . $cpm_config->properties["${type}_comic_folder"] . $subdir_path);
+ ?>
properties["${type}_comic_folder"] . $subdir_path; ?>
get_scale_method() != CPM_SCALE_NONE) &&
@@ -2111,6 +2113,13 @@ function cpm_show_comicpress_details() {
?>
(">not generating)
+ %d files in folder)", 'comicpress-manager'), count(glob($realpath . "/*")));
+ } else {
+ _e('(folder not found)', 'comicpress-manager');
+ }
+ ?>
diff --git a/comicpress_manager_library.php b/comicpress_manager_library.php
index 0c065e2..c34d64c 100644
--- a/comicpress_manager_library.php
+++ b/comicpress_manager_library.php
@@ -290,7 +290,7 @@ function cpm_get_subcomic_directory() {
$result = get_option('comicpress-manager-manage-subcomic');
if (!empty($result)) {
if ($result != $cpm_config->properties['comiccat']) {
- if (($category= get_category($result)) !== false) {
+ if (($category = get_category($result)) !== false) {
return $category->slug;
}
}