From 9639dfb548d0804d9ea637f902fa453790264ac4 Mon Sep 17 00:00:00 2001 From: filip Date: Mon, 1 Dec 2014 08:01:05 +0100 Subject: improvement for regenerating l10n numbers from license file --- en/about/license/license.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'en') diff --git a/en/about/license/license.php b/en/about/license/license.php index 485199926..d7a713b14 100644 --- a/en/about/license/license.php +++ b/en/about/license/license.php @@ -69,7 +69,8 @@ function load_license_numbers($lang, $skip_rebuilding_cache = false) $start_text = '"PO-Revision-Date:'; } if(!$skip_rebuilding_cache) { - $po_file = $po_files_path . $filename; + $po_file = $po_files_path . $filename; + $po_time = 0; $filehandle = @fopen($po_file, 'r'); // read $po_file if($filehandle !== false) { // could open $po_fil fclose($filehandle); @@ -80,7 +81,6 @@ function load_license_numbers($lang, $skip_rebuilding_cache = false) } if(file_exists($cache_file)) { $cached_time = -1; - $po_time = 0; include $cache_file; $cached_time = intval($cached_time); $po_time = intval($po_time); -- cgit v1.2.1