This repository has been archived by the owner on May 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup layouts into one 'layout' setting.
Sync Lychee-front. Bump version to 3.2.13.
- Loading branch information
Showing
6 changed files
with
46 additions
and
30 deletions.
There are no files selected for viewing
Submodule Lychee-front
updated
5 files
+1 −1 | package.json | |
+2 −2 | scripts/build.js | |
+36 −39 | scripts/lychee.js | |
+1 −2 | scripts/settings.js | |
+8 −9 | scripts/view.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
/** | ||
* Update to version 3.2.13 | ||
*/ | ||
|
||
use Lychee\Modules\Database; | ||
use Lychee\Modules\Response; | ||
|
||
// Add lang to settings | ||
$query = Database::prepare($connection, "SELECT `key` FROM `?` WHERE `key` = 'layout' LIMIT 1", array(LYCHEE_TABLE_SETTINGS)); | ||
$result = Database::execute($connection, $query, 'update_030213', __LINE__); | ||
|
||
if ($result===false) Response::error('Could not get current lang from database!'); | ||
|
||
if ($result->num_rows===0) { | ||
|
||
$query = Database::prepare($connection, "UPDATE `?` SET `key`='layout' WHERE `key`='justified_layout'", array(LYCHEE_TABLE_SETTINGS)); | ||
$result = Database::execute($connection, $query, 'update_030213', __LINE__); | ||
|
||
if ($result===false) Response::error('Could not rename justified_layout!'); | ||
|
||
} | ||
|
||
// Set version | ||
if (Database::setVersion($connection, 'update_030213')===false) Response::error('Could not update version of database!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.2.12 | ||
3.2.13 |