aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-08 13:49:57 +0200
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-08 13:49:57 +0200
commita3436d4cbaa3ad059e64bd77cfe789beecacf87c (patch)
tree0bf270162d08dec1eb0fb33ce33a1392a930eb95
parent07ee09f49ad3a6ac567f123b338ccb75b1464164 (diff)
downloadwallabag-a3436d4cbaa3ad059e64bd77cfe789beecacf87c.tar.gz
wallabag-a3436d4cbaa3ad059e64bd77cfe789beecacf87c.tar.zst
wallabag-a3436d4cbaa3ad059e64bd77cfe789beecacf87c.zip
travis
-rw-r--r--.travis.yml15
-rw-r--r--TODO.md3
-rw-r--r--inc/poche/Poche.class.php4
3 files changed, 20 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index e69de29b..9d6ba132 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -0,0 +1,15 @@
1language: php
2
3php:
4 - 5.4
5
6branches:
7 only:
8 - dev
9
10before_script:
11 - composer install
12
13notifications:
14 email:
15 - 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
7revoir tous les css 7revoir tous les css
8barre fixe d'admin sur la page d'un billet ? 8barre fixe d'admin sur la page d'un billet ?
9revoir export (export vers pocket &cie ? ) 9revoir export (export vers pocket &cie ? )
10raccourcis clavier \ No newline at end of file 10raccourcis clavier
11date 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
465 } 465 }
466 466
467 /** 467 /**
468 * Check online the latest version of poche and cache it 468 * Checks online the latest version of poche and cache it
469 * @param string $which 'prod' or 'dev' 469 * @param string $which 'prod' or 'dev'
470 * @return string latest $which version 470 * @return string latest $which version
471 */ 471 */
472 private function getPocheVersion($which = 'prod') 472 private function getPocheVersion($which = 'prod')
473 { 473 {
474 $cache_file = CACHE . '/' . $which; 474 $cache_file = CACHE . '/' . $which;
475
476 # checks if the cached version file exists
475 if (file_exists($cache_file) && (filemtime($cache_file) > (time() - 86400 ))) { 477 if (file_exists($cache_file) && (filemtime($cache_file) > (time() - 86400 ))) {
476 $version = file_get_contents($cache_file); 478 $version = file_get_contents($cache_file);
477 } else { 479 } else {