gnucash-htdocs master: Clean up redundancy in download paths.
John Ralls
jralls at code.gnucash.org
Wed Apr 15 13:02:51 EDT 2020
Updated via https://github.com/Gnucash/gnucash-htdocs/commit/8f8ef74e (commit)
from https://github.com/Gnucash/gnucash-htdocs/commit/f1af690d (commit)
commit 8f8ef74e0190d82077e5f1033b50ae3e8dd1ad0a
Author: John Ralls <jralls at ceridwen.us>
Date: Wed Apr 15 09:57:57 2020 -0700
Clean up redundancy in download paths.
diff --git a/externals/global_params.php b/externals/global_params.php
index 03b0550..0ad8509 100644
--- a/externals/global_params.php
+++ b/externals/global_params.php
@@ -39,7 +39,8 @@
// to define several paths that will be used on several pages
// on the website.
// Please don't make changes below unless you know what you are doing.
- $stable_path="https://sourceforge.net/projects/gnucash/files/gnucash%20(stable)/";
+ $base_path="https://sourceforge.net/projects/gnucash/files"
+ $stable_path=$base_path. "/gnucash%20(stable)/";
$latest_stable_path=$stable_path.$latest_stable."/";
$latest_stable_win="gnucash-".$latest_stable_win.".setup.exe";
@@ -56,16 +57,13 @@
$old_stable_mac_ppc="Gnucash-PPC-".$old_stable_mac_ppc.".dmg";
$old_stable_source="gnucash-".$old_stable.".tar.bz2";
- $unstable_path="https://sourceforge.net/projects/gnucash/files/gnucash%20(unstable)/";
+ $unstable_path=$base+path . "/gnucash%20(unstable)/";
$latest_unstable_path=$unstable_path.$latest_unstable."/";
$latest_unstable_win="gnucash-".$latest_unstable_win."-setup.exe";
$latest_unstable_mac_intel="Gnucash Intel ".$latest_unstable_mac_intel.".dmg";
$latest_unstable_source="gnucash-".$latest_unstable.".tar.bz2";
- $download_path="https://downloads.sourceforge.net/sourceforge/gnucash/";
- // TODO: gets redirected to https://sourceforge.net/projects/gnucash/files/ replace?
-
$URL_FLATHUB="https://flathub.org/apps/details/org.gnucash.GnuCash";
$URL_FLATPAK="https://flatpak.org/";
$URL_WIKI="https://wiki.gnucash.org/wiki/";
Summary of changes:
externals/global_params.php | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
More information about the gnucash-changes
mailing list