From: garvinhicking Date: Mon, 11 Dec 2006 08:36:14 +0000 (+0000) Subject: Fix installer path detection by wagwag X-Git-Tag: 1.1~4 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7eaa3ea6dd5add1d2197bbeb94283f7158ede72a;p=s9y.git Fix installer path detection by wagwag --- diff --git a/docs/NEWS b/docs/NEWS index 4789a62..98943b7 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,9 @@ Version 1.1 () ------------------------------------------------------------------------ + * Fix better installer warning messages when directories have no + write privileges and already exist. Thanks to wagwag! + * Small bugfixes: Allow to use different login credentials than the current HTTP Basic-Auth, if used. Order categories by name in single entry view (garvinhicking) diff --git a/include/admin/installer.inc.php b/include/admin/installer.inc.php index 3da52df..fa0e7fd 100644 --- a/include/admin/installer.inc.php +++ b/include/admin/installer.inc.php @@ -360,7 +360,7 @@ if ( (int)$serendipity['GET']['step'] == 0 ) { if ( is_writable($basedir . PATH_SMARTY_COMPILE) ) { echo serendipity_installerResultDiagnose(S9Y_I_SUCCESS, WRITABLE); } else { - if ($basewritable) { + if ($basewritable && !is_dir($basedir . PATH_SMARTY_COMPILE)) { echo serendipity_installerResultDiagnose(S9Y_I_SUCCESS, WRITABLE); #This directory will be created later in the process } else { @@ -376,7 +376,7 @@ if ( (int)$serendipity['GET']['step'] == 0 ) { if ( is_writable($basedir . 'archives/') ) { echo serendipity_installerResultDiagnose(S9Y_I_SUCCESS, WRITABLE); } else { - if ($basewritable) { + if ($basewritable && !is_dir($basedir . 'archives/')) { echo serendipity_installerResultDiagnose(S9Y_I_SUCCESS, WRITABLE); #This directory will be created later in the process } else { @@ -393,7 +393,7 @@ if ( (int)$serendipity['GET']['step'] == 0 ) { if ( is_writable($basedir . 'uploads/') ) { echo serendipity_installerResultDiagnose(S9Y_I_SUCCESS, WRITABLE); } else { - if ($basewritable) { + if ($basewritable && !is_dir($basedir . 'uploads/')) { echo serendipity_installerResultDiagnose(S9Y_I_SUCCESS, WRITABLE); #This directory will be created later in the process } else {