Ignore `app.config.inc.php` during WSC file sync
authorMatthias Schmidt <gravatronics@live.com>
Thu, 13 Jul 2017 17:46:54 +0000 (19:46 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 13 Jul 2017 17:46:54 +0000 (19:46 +0200)
See #2331

wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPip.class.php

index 4b8e936dd677bb931552703d7c2b47675a070002..d7215d444c80c852ef1cfea66bc16cd6d2966de1 100644 (file)
@@ -212,6 +212,11 @@ class DevtoolsPip extends DatabaseObjectDecorator {
                                                                // ignores `options.inc.php` file which is only valid for installation
                                                                return false;
                                                        }
+                                                       else if ($filename === 'app.config.inc.php') {
+                                                               // ignores `app.config.inc.php` file which has a dummy contents for installation
+                                                               // and cannot be restored by WSC itself
+                                                               return false;
+                                                       }
                                                        else if ($filename === 'templates') {
                                                                // ignores both `templates` and `acp/templates`
                                                                return false;