From e5a6bff197f828196c8b40f225181dab38e763bb Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Tue, 2 Aug 2016 22:21:19 -0400 Subject: [PATCH] easy to remember download URLs --- controller/Controller.class.php | 4 ++++ controller/action/DownloadActions.class.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/controller/Controller.class.php b/controller/Controller.class.php index 31f83c89..485ce974 100644 --- a/controller/Controller.class.php +++ b/controller/Controller.class.php @@ -83,6 +83,10 @@ class Controller case '/lbry-linux-latest.deb': case '/dl/lbry_setup.sh': return static::redirect('/get', 301); + case '/get/lbry.dmg': + return static::redirect(DownloadActions::getDownloadUrl(DownloadActions::OS_OSX)); + case '/get/lbry.deb': + return static::redirect(DownloadActions::getDownloadUrl(DownloadActions::OS_LINUX)); case '/art': return static::redirect('/what', 301); case '/why': diff --git a/controller/action/DownloadActions.class.php b/controller/action/DownloadActions.class.php index a7829452..dd315a68 100644 --- a/controller/action/DownloadActions.class.php +++ b/controller/action/DownloadActions.class.php @@ -187,7 +187,7 @@ class DownloadActions extends Actions return null; } - protected static function getDownloadUrl($os, $useCache = true) + public static function getDownloadUrl($os, $useCache = true) { if (!in_array($os, array_keys(static::getOses()))) {