diff options
author | Maryana Rozhankivska <mariroz@mr.lviv.ua> | 2014-04-02 20:55:19 +0300 |
---|---|---|
committer | Maryana Rozhankivska <mariroz@mr.lviv.ua> | 2014-04-02 20:55:19 +0300 |
commit | 182faf2696b38502d4784efc3f84f2f00290343f (patch) | |
tree | 619e725c1820773dcd8bb1fe9cbd07c0c325e865 /index.php | |
parent | 22db488d21bc23dc28fc2d60574803525fe53b53 (diff) | |
download | wallabag-182faf2696b38502d4784efc3f84f2f00290343f.tar.gz wallabag-182faf2696b38502d4784efc3f84f2f00290343f.tar.zst wallabag-182faf2696b38502d4784efc3f84f2f00290343f.zip |
import without cron
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'])) { |