From 36aee4324c4d1a1b50310526601473fe8b399139 Mon Sep 17 00:00:00 2001 From: onli Date: Thu, 27 Jun 2013 23:15:03 +0200 Subject: [PATCH] fix last page of the installer --- include/admin/installer.inc.php | 12 ++++++------ templates/2k11/admin/installer.inc.tpl | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/admin/installer.inc.php b/include/admin/installer.inc.php index bd668ea3..08f4f56c 100644 --- a/include/admin/installer.inc.php +++ b/include/admin/installer.inc.php @@ -66,7 +66,7 @@ if (!empty($serendipity['POST']['getstep']) && is_numeric($serendipity['POST'][' } /* From configuration to install */ -if ( sizeof($_POST) > 1 && (int)$serendipity['GET']['step'] == 3 ) { +if ( sizeof($_POST) > 1 && $serendipity['GET']['step'] == '3' ) { /* One problem, if the user chose to do an easy install, not all config vars has been transfered Therefore we fetch all config vars with their default values, and merge them with our POST data */ @@ -87,7 +87,7 @@ if ( sizeof($_POST) > 1 && (int)$serendipity['GET']['step'] == 3 ) { $serendipity['GET']['step'] = $serendipity['POST']['step']; } else { /* We're good, move to install process */ - $serendipity['GET']['step'] = 3; + $serendipity['GET']['step'] = '3'; } } @@ -337,9 +337,7 @@ if ( (int)$serendipity['GET']['step'] == 0 ) { $data['ob_serendipity_printConfigTemplate'] = ob_get_contents(); ob_end_clean(); -} elseif ( (int)$serendipity['GET']['step'] == 3 ) { - - $data['getstepint3'] = true; +} elseif ( $serendipity['GET']['step'] == '3' ) { $serendipity['dbPrefix'] = $_POST['dbPrefix']; $t = serendipity_db_query("SELECT * FROM {$serendipity['dbPrefix']}authors", false, 'both', false, false, false, true); @@ -374,7 +372,9 @@ if ( (int)$serendipity['GET']['step'] == 0 ) { if ( serendipity_updateConfiguration() ) { $data['s9y_installed'] = true; - } + } + echo serendipity_smarty_show("admin/installer.inc.tpl", $data); + return; } diff --git a/templates/2k11/admin/installer.inc.tpl b/templates/2k11/admin/installer.inc.tpl index f70bd5b2..c9cb813e 100644 --- a/templates/2k11/admin/installer.inc.tpl +++ b/templates/2k11/admin/installer.inc.tpl @@ -247,7 +247,7 @@ {if $ob_serendipity_printConfigTemplate}{$ob_serendipity_printConfigTemplate}{/if} - {elseif $getstepint3} + {elseif $s9yGETstep == '3'}

{$CONST.CHECK_DATABASE_EXISTS}

{if is_array($authors_query)} {$CONST.THEY_DO}, {$CONST.WONT_INSTALL_DB_AGAIN}