first run fixes

This commit is contained in:
John Bintz 2009-08-28 08:42:37 -04:00
parent 3b681859f6
commit ef49fe94d5
2 changed files with 4 additions and 6 deletions

View File

@ -5,6 +5,8 @@ function cpm_action_skip_first_run() {
$cpm_config->messages[] = __("<strong>No directories were created.</strong> You'll need to create directories on your own.", 'comicpress-manager'); $cpm_config->messages[] = __("<strong>No directories were created.</strong> You'll need to create directories on your own.", 'comicpress-manager');
$cpm_config->did_first_run = true;
cpm_read_information_and_check_config(); cpm_read_information_and_check_config();
} }

View File

@ -745,18 +745,14 @@ function cpm_manager_page_caller($page) {
$do_first_run = !$all_comic_folders_found; $do_first_run = !$all_comic_folders_found;
if (!$do_first_run) { if (!$do_first_run) {
if ($wpmu_version) {
update_option("comicpress-manager-cpm-did-first-run", 1); update_option("comicpress-manager-cpm-did-first-run", 1);
} }
} }
}
if ($do_first_run) { if ($do_first_run) {
include("pages/comicpress_first_run.php"); include("pages/comicpress_first_run.php");
cpm_manager_first_run(plugin_basename(__FILE__)); cpm_manager_first_run(plugin_basename(__FILE__));
if ($wpmu_version) {
update_option("comicpress-manager-cpm-did-first-run", 1); update_option("comicpress-manager-cpm-did-first-run", 1);
}
} else { } else {
if ($cpm_config->did_first_run) { $page = "config"; } if ($cpm_config->did_first_run) { $page = "config"; }
include("pages/comicpress_${page}.php"); include("pages/comicpress_${page}.php");