From 417dd4183d4b1d47fd3249f9d1bec4c51870db9e Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sat, 4 Jan 2014 13:23:21 -0800 Subject: [PATCH] Revert "Fix viewdocs.phtml to accept two-letter or three-letter language codes" This reverts commit bf0d3c3ce4c1b605707bc7934c71ce7300590810. Makes the problem worse. --- viewdoc.phtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/viewdoc.phtml b/viewdoc.phtml index 9cfe8e04..fa2c2a7c 100644 --- a/viewdoc.phtml +++ b/viewdoc.phtml @@ -86,8 +86,8 @@ if (isset ($_GET["rev"])) { # updated if list of languages in which the documentation is available changes if ($showrev == "trunk") { $basepath = "http://code.gnucash.org/docs"; - $trunk_langs = array ( $helpdoc => array( "C", "de", "de_DE", "it", "it_IT"), - $tcdoc => array( "C", "de" "de_DE", "it", "it_IT", "ja", "ja_JP")); + $trunk_langs = array ( $helpdoc => array( "C", "de_DE", "it_IT"), + $tcdoc => array( "C", "de_DE", "it_IT", "ja_JP")); if (!in_array ($showlang, $trunk_langs[$showdoc])) { $showlang = "C"; $req_lang_ok = false;