We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 949c50e commit 5f47566Copy full SHA for 5f47566
lib/Subscribers/OnAfterSaveOptionsHandler.php
@@ -26,6 +26,10 @@ public function handler() : void
26
&&
27
OptionsManager::option('native_config_file_path')
28
) {
29
+ if (!@file_exists($_SERVER['DOCUMENT_ROOT'] . '/local/routes/')) {
30
+ @mkdir($_SERVER['DOCUMENT_ROOT'] . '/local/routes/', 0777);
31
+ }
32
+
33
$filePath = $_SERVER['DOCUMENT_ROOT'] . '/local/routes/' . OptionsManager::option('php_router_config_path');
34
if (@file_exists($filePath)
35
&& !$this->isFilesAreEqual($filePath, __DIR__ . '/../../configs/route_config_template.php.tmpl')) {
0 commit comments