Skip to content

Commit

Permalink
Merge branch 'v1-1-0'
Browse files Browse the repository at this point in the history
  • Loading branch information
velocity23 committed Jan 7, 2021
2 parents 3dbc5b9 + baf26ac commit b6b4c39
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 54 deletions.
11 changes: 0 additions & 11 deletions install/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,6 @@ public static function appendConfig($data = array())
fwrite($file, $currentConf);
fclose($file);

// write init file
$newConf = file_get_contents(__DIR__.'/templates/init.php');
$file = fopen(__DIR__.'/../core/init.php', 'w+');

if (!$file) {
return false;
}

fwrite($file, $newConf);
fclose($file);

return true;

}
Expand Down
39 changes: 0 additions & 39 deletions install/templates/init.php

This file was deleted.

6 changes: 4 additions & 2 deletions update.php
Original file line number Diff line number Diff line change
Expand Up @@ -806,8 +806,9 @@
}

$routes = Json::decode($routes);
$lastId = Route::lastId();

$sql = "INSERT INTO routes (fltnum, dep, arr, duration, aircraftid) VALUES";
$sql = "INSERT INTO routes (id, fltnum, dep, arr, duration) VALUES";
$params = array();
$j = 0;
foreach ($routes as $item) {
Expand All @@ -824,11 +825,12 @@
}

$sql .= "\n(?, ?, ?, ?, ?),";
array_push($params, $lastId + $j + 1);
array_push($params, $item["fltnum"]);
array_push($params, $item["dep"]);
array_push($params, $item["arr"]);
array_push($params, $item["duration"]);
array_push($params, $item["aircraftid"]);
Route::addAircraft($lastId + $j + 1, $item["aircraftid"]);

$j++;
}
Expand Down
12 changes: 12 additions & 0 deletions updates.json
Original file line number Diff line number Diff line change
Expand Up @@ -297,5 +297,17 @@
"queries": [],
"deletedFiles": [],
"newFolders": []
},
{
"tag": "v1.1.2",
"name": "Version 1.1.2",
"date": "2021-01-08",
"notes": "Various Bug Fixes",
"prerelease": false,
"useUpdater": true,
"files": ["admin/repair.php", "core/init.php", "update.php"],
"queries": [],
"deletedFiles": [],
"newFolders": []
}
]
4 changes: 2 additions & 2 deletions version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"tag": "v1.1.1",
"name": "Version 1.1.1",
"tag": "v1.1.2",
"name": "Version 1.1.2",
"prerelease": false
}

0 comments on commit b6b4c39

Please sign in to comment.