diff options
author | filip <filip.komar@gmail.com> | 2014-12-01 07:29:34 +0100 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2014-12-01 07:29:34 +0100 |
commit | 86da156d311517ea8e3f454593d80cf1af0347a4 (patch) | |
tree | 9bb05010bfe2661e3538e4c567a4bd96728f3f6d /en/about | |
parent | bb1037195d89931e43196c934ca8242b9ebaf507 (diff) | |
download | www-86da156d311517ea8e3f454593d80cf1af0347a4.tar www-86da156d311517ea8e3f454593d80cf1af0347a4.tar.gz www-86da156d311517ea8e3f454593d80cf1af0347a4.tar.bz2 www-86da156d311517ea8e3f454593d80cf1af0347a4.tar.xz www-86da156d311517ea8e3f454593d80cf1af0347a4.zip |
safer regenerating l10n numbers from license file
Diffstat (limited to 'en/about')
-rw-r--r-- | en/about/license/license.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/en/about/license/license.php b/en/about/license/license.php index aa7c057bd..485199926 100644 --- a/en/about/license/license.php +++ b/en/about/license/license.php @@ -79,7 +79,11 @@ function load_license_numbers($lang, $skip_rebuilding_cache = false) if(!$po_time) { $po_time = 0; } // fallback } if(file_exists($cache_file)) { + $cached_time = -1; + $po_time = 0; include $cache_file; + $cached_time = intval($cached_time); + $po_time = intval($po_time); if($cached_time < $po_time) { $rebuild_cache = true; } @@ -87,6 +91,7 @@ function load_license_numbers($lang, $skip_rebuilding_cache = false) $rebuild_cache = true; } if($rebuild_cache) { + $po_time = intval($po_time); $license_array = read_license_from_vcs($lang); $license_numbers = array_pop($license_array); $license_num_all = $license_numbers["all"]; |