Skip to content

Commit 6a39787

Browse files
touhidurabirasmecher
authored andcommitted
#11171 Config data reset for writing at installation (#11295)
1 parent 3b6f2e0 commit 6a39787

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

classes/config/Config.php

+8
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,14 @@ public static function &reloadData()
116116
return $configData;
117117
}
118118

119+
/**
120+
* Reset the config data in registry
121+
*/
122+
public static function resetData()
123+
{
124+
Registry::set('configData', static::reloadData());
125+
}
126+
119127
/**
120128
* Set the path to the configuration file.
121129
*

classes/install/Installer.php

+5
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,8 @@ public function updateConfig($configParams)
546546
$this->wroteConfig = false;
547547
}
548548

549+
Config::resetData();
550+
549551
return true;
550552
}
551553

@@ -949,8 +951,11 @@ public function checkPhpVersion()
949951
*/
950952
public function updateRorRegistryDataset(): bool
951953
{
954+
PKPApplication::upgrade();
955+
952956
$updateRorRegistryDataset = new UpdateRorRegistryDataset();
953957
$updateRorRegistryDataset->execute();
958+
954959
return true;
955960
}
956961

classes/scheduledTask/ScheduledTask.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function __construct(private array $args = [])
6565
if (!$success) {
6666
// files directory wrong configuration?
6767
assert(false);
68-
$this->executionLogFile = null;
68+
$this->executionLogFile = '';
6969
}
7070
}
7171
}

0 commit comments

Comments
 (0)