small pathfinding change
This commit is contained in:
parent
4e8d0d0f3d
commit
3ea563c4cb
|
@ -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(); }
|
||||
|
|
|
@ -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 <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\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 "<strong>Directory created:</strong> %s"
|
||||
msgstr ""
|
||||
|
||||
#: actions/comicpress_do-first-run.php:28
|
||||
#: actions/comicpress_do-first-run.php:29
|
||||
#, php-format
|
||||
msgid "<strong>Unable to create directory:</strong> %s"
|
||||
msgstr ""
|
||||
|
||||
#: actions/comicpress_do-first-run.php:35
|
||||
#: actions/comicpress_do-first-run.php:36
|
||||
msgid "<strong>All the directories were already found, nothing to do!</strong>"
|
||||
msgstr ""
|
||||
|
||||
#: actions/comicpress_do-first-run.php:39
|
||||
#: actions/comicpress_do-first-run.php:40
|
||||
msgid "<strong>All directories created!</strong>"
|
||||
msgstr ""
|
||||
|
||||
#: actions/comicpress_do-first-run.php:42
|
||||
#: actions/comicpress_do-first-run.php:43
|
||||
msgid ""
|
||||
"<strong>Unable to create directories!</strong> Contact your administrator."
|
||||
msgstr ""
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue