diff options
author | Jean-Christophe Saad-Dupuy <saad.dupuy@gmail.com> | 2013-10-07 14:25:24 +0200 |
---|---|---|
committer | Jean-Christophe Saad-Dupuy <saad.dupuy@gmail.com> | 2013-10-07 14:25:24 +0200 |
commit | 5e07dc8b51f9612de5f5a00bbac399c777e82fa4 (patch) | |
tree | 66454b9a6dd4e8cd045dd8451a268cf914e583b8 /index.php | |
parent | 2916d24b209e1e36cf22cb902d7e6dc34113c7e5 (diff) | |
parent | 894c36ea32d38d425e27dae43a29dcd9e669040e (diff) | |
download | wallabag-5e07dc8b51f9612de5f5a00bbac399c777e82fa4.tar.gz wallabag-5e07dc8b51f9612de5f5a00bbac399c777e82fa4.tar.zst wallabag-5e07dc8b51f9612de5f5a00bbac399c777e82fa4.zip |
Merge remote branch 'upstream/dev' into dev
Conflicts:
themes/default/_head.twig
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -8,6 +8,7 @@ | |||
8 | * @license http://www.wtfpl.net/ see COPYING file | 8 | * @license http://www.wtfpl.net/ see COPYING file |
9 | */ | 9 | */ |
10 | 10 | ||
11 | define ('POCHE', '1.0.0'); | ||
11 | require_once 'inc/poche/global.inc.php'; | 12 | require_once 'inc/poche/global.inc.php'; |
12 | 13 | ||
13 | # Start Poche | 14 | # Start Poche |
@@ -35,7 +36,12 @@ $tpl_vars = array( | |||
35 | if (! empty($notInstalledMessage)) { | 36 | if (! empty($notInstalledMessage)) { |
36 | if (! Poche::$canRenderTemplates || ! Poche::$configFileAvailable) { | 37 | if (! Poche::$canRenderTemplates || ! Poche::$configFileAvailable) { |
37 | # We cannot use Twig to display the error message | 38 | # We cannot use Twig to display the error message |
38 | die($notInstalledMessage); | 39 | echo '<h1>Errors</h1><ol>'; |
40 | foreach ($notInstalledMessage as $message) { | ||
41 | echo '<li>' . $message . '</li>'; | ||
42 | } | ||
43 | echo '</ol>'; | ||
44 | die(); | ||
39 | } else { | 45 | } else { |
40 | # Twig is installed, put the error message in the template | 46 | # Twig is installed, put the error message in the template |
41 | $tpl_file = Tools::getTplFile('error'); | 47 | $tpl_file = Tools::getTplFile('error'); |