From 3ea563c4cbc556a0cc46fc5b5faa7d576def8bfb Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 7 Oct 2009 09:05:21 -0400 Subject: [PATCH] small pathfinding change --- actions/comicpress_do-first-run.php | 2 +- comicpress-manager.pot | 12 ++++++------ comicpress_manager_count_missing_entries.php | 2 -- comicpress_manager_library.php | 2 +- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/actions/comicpress_do-first-run.php b/actions/comicpress_do-first-run.php index f41b550..6efd840 100644 --- a/actions/comicpress_do-first-run.php +++ b/actions/comicpress_do-first-run.php @@ -8,7 +8,7 @@ function cpm_action_do_first_run() { CPM_DOCUMENT_ROOT . '/comics', CPM_DOCUMENT_ROOT . '/comics-rss', CPM_DOCUMENT_ROOT . '/comics-archive', - CPM_DOCUMENT_ROOT . '/comics-mini', + CPM_DOCUMENT_ROOT . '/comics-mini' ); $is_wpmu = $wpmu_version; if ($is_wpmu) { $dir_list = cpm_wpmu_first_run_dir_list(); } diff --git a/comicpress-manager.pot b/comicpress-manager.pot index 59ac57b..b405131 100644 --- a/comicpress-manager.pot +++ b/comicpress-manager.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: comicpress-manager 1.4.8\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-10-07 07:05-0400\n" +"POT-Creation-Date: 2009-10-07 08:27-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -196,25 +196,25 @@ msgid "" "folder and try again." msgstr "" -#: actions/comicpress_do-first-run.php:23 +#: actions/comicpress_do-first-run.php:24 #, php-format msgid "Directory created: %s" msgstr "" -#: actions/comicpress_do-first-run.php:28 +#: actions/comicpress_do-first-run.php:29 #, php-format msgid "Unable to create directory: %s" msgstr "" -#: actions/comicpress_do-first-run.php:35 +#: actions/comicpress_do-first-run.php:36 msgid "All the directories were already found, nothing to do!" msgstr "" -#: actions/comicpress_do-first-run.php:39 +#: actions/comicpress_do-first-run.php:40 msgid "All directories created!" msgstr "" -#: actions/comicpress_do-first-run.php:42 +#: actions/comicpress_do-first-run.php:43 msgid "" "Unable to create directories! Contact your administrator." msgstr "" diff --git a/comicpress_manager_count_missing_entries.php b/comicpress_manager_count_missing_entries.php index 6669d53..ba41bf4 100644 --- a/comicpress_manager_count_missing_entries.php +++ b/comicpress_manager_count_missing_entries.php @@ -28,8 +28,6 @@ } $all_post_dates = array_unique($all_post_dates); - echo get_comic_folder_path(); - ob_start(); $missing_comic_count = 0; foreach (cpm_read_comics_folder() as $comic_file) { diff --git a/comicpress_manager_library.php b/comicpress_manager_library.php index c895d05..61f3b7a 100644 --- a/comicpress_manager_library.php +++ b/comicpress_manager_library.php @@ -79,7 +79,7 @@ function cpm_calculate_document_root() { $cwd = getcwd(); if ($cwd !== false) { // Strip the wp-admin part and just get to the root. - $document_root = preg_replace('#[\\/]wp-(admin|content).*#', '', $cwd); + $document_root = preg_replace('#[\\\/]wp-(admin|content).*#', '', $cwd); } if (isset($wpmu_version)) {