some more repairs

This commit is contained in:
John Bintz 2009-10-07 08:23:54 -04:00
parent 4fbec8b9cd
commit 4e8d0d0f3d
4 changed files with 1014 additions and 1009 deletions

View File

@ -7,7 +7,8 @@ function cpm_action_do_first_run() {
CPM_DOCUMENT_ROOT,
CPM_DOCUMENT_ROOT . '/comics',
CPM_DOCUMENT_ROOT . '/comics-rss',
CPM_DOCUMENT_ROOT . '/comics-archive'
CPM_DOCUMENT_ROOT . '/comics-archive',
CPM_DOCUMENT_ROOT . '/comics-mini',
);
$is_wpmu = $wpmu_version;
if ($is_wpmu) { $dir_list = cpm_wpmu_first_run_dir_list(); }

File diff suppressed because it is too large Load Diff

View File

@ -28,6 +28,8 @@
}
$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) {

View File

@ -79,8 +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 = str_replace('\wp-admin','',getcwd());
$document_root = str_replace('/wp-admin','',$document_root); // For IIS
$document_root = preg_replace('#[\\/]wp-(admin|content).*#', '', $cwd);
}
if (isset($wpmu_version)) {
@ -305,6 +304,7 @@ function cpm_read_comics_folder() {
global $cpm_config;
$glob_results = glob(get_comic_folder_path() . "/*");
if ($glob_results === false) {
//$cpm_config->messages[] = "FYI: glob({$cpm_config->path}/*) returned false. This can happen on some PHP installations if you have no files in your comic directory. This message will disappear once you upload a comic to your site.";
return array();