aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorMaryana Rozhankivska <mariroz@mr.lviv.ua>2014-04-02 20:55:19 +0300
committerMaryana Rozhankivska <mariroz@mr.lviv.ua>2014-04-02 20:55:19 +0300
commit182faf2696b38502d4784efc3f84f2f00290343f (patch)
tree619e725c1820773dcd8bb1fe9cbd07c0c325e865 /index.php
parent22db488d21bc23dc28fc2d60574803525fe53b53 (diff)
downloadwallabag-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.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/index.php b/index.php
index fb13f38d..8b578832 100644..100755
--- a/index.php
+++ b/index.php
@@ -40,7 +40,7 @@ $tpl_vars = array(
40 40
41if (! empty($notInstalledMessage)) { 41if (! 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'])) {