Updated version
This commit is contained in:
parent
6caffe004b
commit
5b865de5a6
@ -8,8 +8,8 @@
|
|||||||
var lychee = {
|
var lychee = {
|
||||||
|
|
||||||
title: "",
|
title: "",
|
||||||
version: "2.6.2",
|
version: "2.6.3",
|
||||||
version_code: "020602",
|
version_code: "020603",
|
||||||
|
|
||||||
api_path: "php/api.php",
|
api_path: "php/api.php",
|
||||||
update_path: "http://lychee.electerious.com/version/index.php",
|
update_path: "http://lychee.electerious.com/version/index.php",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Lychee",
|
"name": "Lychee",
|
||||||
"version": "2.6.2",
|
"version": "2.6.3",
|
||||||
"description": "Self-hosted photo-management done right.",
|
"description": "Self-hosted photo-management done right.",
|
||||||
"authors": "Tobias Reich <tobias.reich.ich@gmail.com>",
|
"authors": "Tobias Reich <tobias.reich.ich@gmail.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -23,7 +23,7 @@ class Database extends Module {
|
|||||||
# Avoid sql injection on older MySQL versions by using GBK
|
# Avoid sql injection on older MySQL versions by using GBK
|
||||||
if ($database->server_version<50500) $database->set_charset('GBK');
|
if ($database->server_version<50500) $database->set_charset('GBK');
|
||||||
else $database->set_charset("utf8");
|
else $database->set_charset("utf8");
|
||||||
|
|
||||||
# Set unicode
|
# Set unicode
|
||||||
$database->query('SET NAMES utf8;');
|
$database->query('SET NAMES utf8;');
|
||||||
|
|
||||||
@ -44,6 +44,7 @@ class Database extends Module {
|
|||||||
|
|
||||||
# Check dependencies
|
# Check dependencies
|
||||||
Module::dependencies(isset($database, $dbName));
|
Module::dependencies(isset($database, $dbName));
|
||||||
|
if (!isset($version)) return true;
|
||||||
|
|
||||||
# List of updates
|
# List of updates
|
||||||
$updates = array(
|
$updates = array(
|
||||||
@ -59,7 +60,7 @@ class Database extends Module {
|
|||||||
# For each update
|
# For each update
|
||||||
foreach ($updates as $update) {
|
foreach ($updates as $update) {
|
||||||
|
|
||||||
if (isset($version)&&$update<=$version) continue;
|
if ($update<=$version) continue;
|
||||||
|
|
||||||
# Load update
|
# Load update
|
||||||
include(__DIR__ . '/../database/update_' . $update . '.php');
|
include(__DIR__ . '/../database/update_' . $update . '.php');
|
||||||
|
Loading…
Reference in New Issue
Block a user