]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/Poche.class.php
Revert "Add SHAARLI support to view template"
[github/wallabag/wallabag.git] / inc / poche / Poche.class.php
index cb865a2a976ae60bf3ffbf4fe03900720d1421af..e0dc0d201daa27532d7aee8c82cfdf00812874a8 100644 (file)
@@ -42,7 +42,11 @@ class Poche
         $msg = '';
         $allIsGood = TRUE;
 
-        if (file_exists('./install/update.php') && !DEBUG_POCHE) {
+        if (!is_writable(CACHE)) {
+            Tools::logm('you don\'t have write access on cache directory');
+            die('You don\'t have write access on cache directory.');
+        }
+        else if (file_exists('./install/update.php') && !DEBUG_POCHE) {
             $msg = 'A poche update is needed. Please execute this update <a href="install/update.php">by clicking here</a>. If you have already do the update, please delete /install folder.';
             $allIsGood = FALSE;
         }
@@ -55,12 +59,7 @@ class Poche
             $msg = 'You don\'t have write access on sqlite file.';
             $allIsGood = FALSE;
         }
-        else if (!is_writable(CACHE)) {
-            Tools::logm('you don\'t have write access on cache directory');
-            $msg = 'You don\'t have write access on cache directory.';
-            $allIsGood = FALSE;
-        }
-
+        
         if (!$allIsGood) {
             echo $this->tpl->render('error.twig', array(
                 'msg' => $msg