1
0
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:
Toby Zerner
2015-08-31 14:25:16 +09:30
parent c72bdc8238
commit 5e22458014
6 changed files with 18 additions and 20 deletions

14
views/install/errors.php Normal file
View 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>