Skip to content

Commit 66c80b1

Browse files
committed
optimize: extension recheck route
1 parent ac329db commit 66c80b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Controllers/InstallerController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function requiredExtensions()
113113
'phpExtensions' => $this->phpExtensions,
114114
'supported' => $this->support,
115115
'symlink' => $this->symlink,
116-
'next_step_url' => $this->getNextStep()
116+
'next_step_url' => $this->support ? $this->getNextStep() : route('installer.require'),
117117
]);
118118
}
119119

@@ -274,7 +274,7 @@ public function getNextStep(): string
274274
if (file_exists(storage_path('framework/installer-step.php'))) {
275275
unlink(storage_path('framework/installer-step.php'));
276276
}
277-
277+
278278
Session::flush();
279279

280280
return url(config('installer.redirect'));
@@ -283,7 +283,7 @@ public function getNextStep(): string
283283

284284
public function getCurrentStep()
285285
{
286-
return file_get_contents(storage_path('framework/installer-step.php'));
286+
return file_exists(storage_path('framework/installer-step.php')) ? file_get_contents(storage_path('framework/installer-step.php')) : null;
287287
}
288288

289289
public function fetchNextStep()

0 commit comments

Comments
 (0)