Skip to content

Commit

Permalink
🚀 Stater Site release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradSollitt committed Dec 11, 2019
1 parent 59db2ba commit 6bd3e9e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions app/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,16 @@
// 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
// and works well when minimal logic is used. As code grows in size it
// can be organized into controller classes.
//
$app->get('/', function() use ($app) {
$app->redirect($app->rootUrl() . 'en/');
$app->redirect($app->rootUrl() . I18n::getUserDefaultLang() . '/');
});

// Home Page
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions scripts/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
),
Expand Down

0 comments on commit 6bd3e9e

Please sign in to comment.