summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorElan Ruusamäe <glen@delfi.ee>2012-07-08 10:43:35 +0300
committerElan Ruusamäe <glen@delfi.ee>2012-07-08 10:43:35 +0300
commit56d54889370924612b008237138a9042bbcc4251 (patch)
tree990bcae44e469b6f285a985177ee24a377667611 /install.php
parentd22cdf50593868f32503340eb36962c9642d7c93 (diff)
downloadrpg-56d54889370924612b008237138a9042bbcc4251.tar.gz
rpg-56d54889370924612b008237138a9042bbcc4251.tar.bz2
consider empty files as no file in installer
allow empty config file to proceed installation as we package default config empty in first install as packager may provide empty file in package, to ensure correct file permissions. import old patch: http://cvs.pld-linux.org/packages/dokuwiki/install.patch
Diffstat (limited to 'install.php')
-rw-r--r--install.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/install.php b/install.php
index 3d9fddbb2..0a2bf0a46 100644
--- a/install.php
+++ b/install.php
@@ -431,7 +431,7 @@ function check_configs(){
// configs shouldn't exist
foreach ($config_files as $file) {
- if (@file_exists($file)) {
+ if (@file_exists($file) && filesize($file)) {
$file = str_replace($_SERVER['DOCUMENT_ROOT'],'{DOCUMENT_ROOT}/', $file);
$error[] = sprintf($lang['i_confexists'],$file);
$ok = false;