diff options
Diffstat (limited to 'index.php')
-rwxr-xr-x[-rw-r--r--] | index.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -40,7 +40,7 @@ $tpl_vars = array( | |||
40 | 40 | ||
41 | if (! empty($notInstalledMessage)) { | 41 | if (! empty($notInstalledMessage)) { |
42 | if (! Poche::$canRenderTemplates || ! Poche::$configFileAvailable) { | 42 | if (! Poche::$canRenderTemplates || ! Poche::$configFileAvailable) { |
43 | # We cannot use Twig to display the error message | 43 | # We cannot use Twig to display the error message |
44 | echo '<h1>Errors</h1><ol>'; | 44 | echo '<h1>Errors</h1><ol>'; |
45 | foreach ($notInstalledMessage as $message) { | 45 | foreach ($notInstalledMessage as $message) { |
46 | echo '<li>' . $message . '</li>'; | 46 | echo '<li>' . $message . '</li>'; |
@@ -67,7 +67,8 @@ if (isset($_GET['login'])) { | |||
67 | # Update password | 67 | # Update password |
68 | $poche->updatePassword(); | 68 | $poche->updatePassword(); |
69 | } elseif (isset($_GET['import'])) { | 69 | } elseif (isset($_GET['import'])) { |
70 | $import = $poche->import($_GET['from']); | 70 | $import = $poche->import(); |
71 | $tpl_vars = array_merge($tpl_vars, $import); | ||
71 | } elseif (isset($_GET['download'])) { | 72 | } elseif (isset($_GET['download'])) { |
72 | Tools::download_db(); | 73 | Tools::download_db(); |
73 | } elseif (isset($_GET['empty-cache'])) { | 74 | } elseif (isset($_GET['empty-cache'])) { |