diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-08 13:49:57 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-08 13:49:57 +0200 |
commit | a3436d4cbaa3ad059e64bd77cfe789beecacf87c (patch) | |
tree | 0bf270162d08dec1eb0fb33ce33a1392a930eb95 | |
parent | 07ee09f49ad3a6ac567f123b338ccb75b1464164 (diff) | |
download | wallabag-a3436d4cbaa3ad059e64bd77cfe789beecacf87c.tar.gz wallabag-a3436d4cbaa3ad059e64bd77cfe789beecacf87c.tar.zst wallabag-a3436d4cbaa3ad059e64bd77cfe789beecacf87c.zip |
travis
-rw-r--r-- | .travis.yml | 15 | ||||
-rw-r--r-- | TODO.md | 3 | ||||
-rw-r--r-- | inc/poche/Poche.class.php | 4 |
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 @@ | |||
1 | language: php | ||
2 | |||
3 | php: | ||
4 | - 5.4 | ||
5 | |||
6 | branches: | ||
7 | only: | ||
8 | - dev | ||
9 | |||
10 | before_script: | ||
11 | - composer install | ||
12 | |||
13 | notifications: | ||
14 | email: | ||
15 | - nicolas.loeuillet@gmail.com \ No newline at end of file | ||
@@ -7,4 +7,5 @@ minifier css | |||
7 | revoir tous les css | 7 | revoir tous les css |
8 | barre fixe d'admin sur la page d'un billet ? | 8 | barre fixe d'admin sur la page d'un billet ? |
9 | revoir export (export vers pocket &cie ? ) | 9 | revoir export (export vers pocket &cie ? ) |
10 | raccourcis clavier \ No newline at end of file | 10 | raccourcis clavier |
11 | 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 | |||
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 { |