From a3436d4cbaa3ad059e64bd77cfe789beecacf87c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 8 Aug 2013 13:49:57 +0200 Subject: [PATCH] travis --- .travis.yml | 15 +++++++++++++++ TODO.md | 3 ++- inc/poche/Poche.class.php | 4 +++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e69de29bb..9d6ba1321 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 942883817..ac3c0e988 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 fecb1616f..56910bc03 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 {