mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
Versioning with Github #915
This commit is contained in:
parent
55dddd6e9f
commit
4d4c39be8e
@ -87,12 +87,16 @@ if (!isset($sql)) {
|
||||
}
|
||||
}
|
||||
|
||||
function versioncheck ($current, $new ,$file ,$response) {
|
||||
function versioncheck ($current, $new ,$file ,$response, $developer = false) {
|
||||
|
||||
global $sql;
|
||||
|
||||
$include = true;
|
||||
|
||||
if ($developer) {
|
||||
$devVersion = $new;
|
||||
}
|
||||
|
||||
if ($current < $new) {
|
||||
|
||||
$response->add("Upgrading Database from $current to $new<br />");
|
||||
@ -193,7 +197,7 @@ try {
|
||||
|
||||
$devVersion = '5.32';
|
||||
|
||||
if (versioncheck($version, $devVersion, 'update_developer.php', $response)) {
|
||||
if (versioncheck($version, $devVersion, 'update_developer.php', $response, true)) {
|
||||
$version = $devVersion;
|
||||
}
|
||||
}
|
||||
|
@ -37,8 +37,7 @@
|
||||
* Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
if (isset($include) and $include == true) {
|
||||
|
||||
if (isset($include) and $include == true and isset($devVersion)) {
|
||||
|
||||
$query = $sql->prepare("SELECT `version` FROM `easywi_version` WHERE `version`=? LIMIT 1");
|
||||
$query->execute(array($devVersion));
|
||||
|
Loading…
x
Reference in New Issue
Block a user