From 3ba8be2195c6caea124ddc0120198b558349c060 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 9 Aug 2011 17:35:07 +0200 Subject: [PATCH] Fixed creation of the options.inc.php file --- wcfsetup/install/files/lib/system/WCF.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/WCF.class.php b/wcfsetup/install/files/lib/system/WCF.class.php index f5d64616ea..b00e09dfd2 100644 --- a/wcfsetup/install/files/lib/system/WCF.class.php +++ b/wcfsetup/install/files/lib/system/WCF.class.php @@ -310,12 +310,12 @@ class WCF { * * @param string $filename */ - protected function loadOptions($filename = null) { + protected function loadOptions($filename = null, $packageID = 1) { if ($filename === null) $filename = WCF_DIR.'options.inc.php'; // create options file if doesn't exist if (!file_exists($filename) || filemtime($filename) <= 1) { - \wcf\data\option\OptionEditor::rebuildFile($filename); + \wcf\data\option\OptionEditor::rebuildFile($filename, $packageID); } require_once($filename); } @@ -441,7 +441,7 @@ class WCF { // load options if (!$isDepedentApplication) { - $this->loadOptions($packageDir.'options.inc.php'); + $this->loadOptions($packageDir.'options.inc.php', $application->packageID); } } -- 2.20.1