From 6bd3e9e62f9cbb9e547375ad18ee6c94f5db9ff0 Mon Sep 17 00:00:00 2001 From: Conrad Sollitt Date: Tue, 10 Dec 2019 17:09:56 -0800 Subject: [PATCH] :rocket: Stater Site release 1.1.0 --- CHANGELOG.md | 5 +++++ app/app.php | 5 +++-- composer.json | 2 +- scripts/install.php | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a17b0f..49b7cde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ FastSitePHP uses [Semantic Versioning](https://docs.npmjs.com/about-semantic-versioning). +## 1.1.0 (December 10, 2019) + +* Update [install.php] to use FastSitePHP Framework 1.1.0 +* Updated Site so that the Root URL redirects to the user's default language based the 'Accept-Language' request header and available languages. + ## 1.0.1 (November 22, 2019) * CSS Update for <table> background color diff --git a/app/app.php b/app/app.php index feaf9ea..e2610c4 100644 --- a/app/app.php +++ b/app/app.php @@ -40,7 +40,8 @@ // The code below provides several different examples. // ---------------------------------------------------------------------------- -// Home Page - Redirect using the Default Language +// Root URL, redirect to the user's default language based the 'Accept-Language' +// request header. Defaults to 'en = English' if no language is matched. // // This route is defined as a callback function (Closure in PHP). // Defining routes with callback functions allows for fast prototyping @@ -48,7 +49,7 @@ // can be organized into controller classes. // $app->get('/', function() use ($app) { - $app->redirect($app->rootUrl() . 'en/'); + $app->redirect($app->rootUrl() . I18n::getUserDefaultLang() . '/'); }); // Home Page diff --git a/composer.json b/composer.json index 22489c0..aafe262 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ }, "require": { "php": ">=5.3.0", - "fastsitephp/fastsitephp": "^1.0", + "fastsitephp/fastsitephp": "^1", "ircmaxell/password-compat": "^1.0", "paragonie/random_compat": "^1|^2", "erusev/parsedown": "^1.7", diff --git a/scripts/install.php b/scripts/install.php index 1534560..b95c052 100644 --- a/scripts/install.php +++ b/scripts/install.php @@ -69,10 +69,10 @@ */ $downloads = array( array( - 'url' => 'https://github.com/fastsitephp/fastsitephp/archive/1.0.0.zip', + 'url' => 'https://github.com/fastsitephp/fastsitephp/archive/1.1.0.zip', 'save_file' => __DIR__ . '/FastSitePHP.zip', 'check_file' => VENDOR_DIR . '/fastsitephp/src/Application.php', - 'rename_from' => VENDOR_DIR . '/fastsitephp-1.0.0', + 'rename_from' => VENDOR_DIR . '/fastsitephp-1.1.0', 'rename_to' => VENDOR_DIR . '/fastsitephp', 'skip_check' => __DIR__ . '/../src/Application.php', // Skip download if running within Framework ),