From: Nicolas LÅ“uillet Date: Thu, 8 Aug 2013 11:49:57 +0000 (+0200) Subject: travis X-Git-Tag: 1.0-beta2~16 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=a3436d4cbaa3ad059e64bd77cfe789beecacf87c;p=github%2Fwallabag%2Fwallabag.git travis --- diff --git a/.travis.yml b/.travis.yml index e69de29b..9d6ba132 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 94288381..ac3c0e98 100644 --- 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 diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index fecb1616..56910bc0 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -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 {