]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
travis
authorNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Thu, 8 Aug 2013 11:49:57 +0000 (13:49 +0200)
committerNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Thu, 8 Aug 2013 11:49:57 +0000 (13:49 +0200)
.travis.yml
TODO.md
inc/poche/Poche.class.php

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..9d6ba1321a338e3366cd056915f66cc0845c6de7 100644 (file)
@@ -0,0 +1,15 @@
+language: php
+
+php:
+  - 5.4
+
+branches:
+  only:
+    - dev
+
+before_script:
+  - composer install
+
+notifications:
+  email:
+    - nicolas.loeuillet@gmail.com
\ No newline at end of file
diff --git a/TODO.md b/TODO.md
index 942883817fa6e572f77127165afa41b89406928f..ac3c0e9889932d9668d038b0020b2aa15b3ad04a 100644 (file)
--- a/TODO.md
+++ b/TODO.md
@@ -7,4 +7,5 @@ minifier css
 revoir tous les css
 barre fixe d'admin sur la page d'un billet ? 
 revoir export (export vers pocket &cie ? )
-raccourcis clavier 
\ No newline at end of file
+raccourcis clavier 
+date d'ajout d'un lien
\ No newline at end of file
index fecb1616f256bc4fce001ad2702b88b4d857e451..56910bc03deb94f238a2f8f2a3fb3dfeb861dc97 100644 (file)
@@ -465,13 +465,15 @@ class Poche
     }
 
     /**
-     * Check online the latest version of poche and cache it
+     * Checks online the latest version of poche and cache it
      * @param  string $which 'prod' or 'dev'
      * @return string        latest $which version
      */
     private function getPocheVersion($which = 'prod')
     {
         $cache_file = CACHE . '/' . $which;
+
+        # checks if the cached version file exists
         if (file_exists($cache_file) && (filemtime($cache_file) > (time() - 86400 ))) {
            $version = file_get_contents($cache_file);
         } else {