mirror of
https://github.com/flarum/core.git
synced 2025-07-31 21:50:50 +02:00
Installer: Prevent crash when views directory is not writable
Use plain PHP templates instead of Blade templates so there is nothing that needs to be written. closes #376
This commit is contained in:
14
views/install/errors.php
Normal file
14
views/install/errors.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<h2>Hold Up!</h2>
|
||||
|
||||
<p>These errors must be resolved before you can continue the installation. If you're having trouble, get help on the <a href="http://flarum.org/docs/installation" target="_blank">Flarum website</a>.</p>
|
||||
|
||||
<div class="Errors">
|
||||
<?php foreach ($errors as $error): ?>
|
||||
<div class="Error">
|
||||
<h3 class="Error-message"><?php echo $error['message']; ?></h3>
|
||||
<?php if (! empty($error['detail'])): ?>
|
||||
<p class="Error-detail"><?php echo $error['detail']; ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
Reference in New Issue
Block a user