bug fix #266: make installation steps easier

This commit is contained in:
Nicolas Lœuillet
2013-10-07 13:12:28 +02:00
parent 5eebe4e50d
commit 9d3b88b379
3 changed files with 57 additions and 44 deletions

View File

@ -35,7 +35,12 @@ $tpl_vars = array(
if (! empty($notInstalledMessage)) {
if (! Poche::$canRenderTemplates || ! Poche::$configFileAvailable) {
# We cannot use Twig to display the error message
die($notInstalledMessage);
echo '<h1>Errors</h1><ol>';
foreach ($notInstalledMessage as $message) {
echo '<li>' . $message . '</li>';
}
echo '</ol>';
die();
} else {
# Twig is installed, put the error message in the template
$tpl_file = Tools::getTplFile('error');