gnucash-htdocs master: Documentation language selection suffered an off-by-one bug in locale filtering

Geert Janssens gjanssens at code.gnucash.org
Sun Apr 26 16:46:03 EDT 2020


Updated	 via  https://github.com/Gnucash/gnucash-htdocs/commit/3afaee06 (commit)
	from  https://github.com/Gnucash/gnucash-htdocs/commit/92af7457 (commit)



commit 3afaee068533a9b545043042c6b8c5f8c12621e8
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Sun Apr 26 22:45:58 2020 +0200

    Documentation language selection suffered an off-by-one bug in locale filtering

diff --git a/viewdoc.phtml b/viewdoc.phtml
index 3806f04..8e1097d 100644
--- a/viewdoc.phtml
+++ b/viewdoc.phtml
@@ -121,7 +121,7 @@ if ($showrev == "maint") {
   $checkpath="docs/v".$showrev."/".$showlang."/".$showdoc;
   if (!file_exists ($checkpath)) {
   	# Try Lang only codes
-  	$showlang = substr($showlang,1,2);
+  	$showlang = $shortlang;
         array_push ($reqlangs, $showlang);
   	if ($showlang == "en") $showlang = "C";
     $checkpath="docs/v".$showrev."/".$showlang."/".$showdoc;



Summary of changes:
 viewdoc.phtml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list