This repository was archived by the owner on May 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 90
V3.2.11 candidate #183
Merged
Merged
V3.2.11 candidate #183
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
82f7782
Setting for image overlay type
bennettscience 2db29cb
Store license in settings
bennettscience 286b327
Include 24-hour timestamp in `photo.json`
bennettscience 317fa2f
Add setting for php_script_limit. Fixes #177
roblandry cebe4de
Address comments, unset
roblandry dfff4d7
- Update English locale with new Setting button
bennettscience c33a080
Write image_overlay_type keys to lychee_settings table
bennettscience 475028a
removed unnecessary settings key
bennettscience c8f9255
Merge remote-tracking branch 'origin/feature/photo-desc' into v3.2.11
ildyria 4cfe9ed
version 3.2.11 ready
ildyria 6d1b3a0
fix with respect to @d7415 :)
ildyria File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Submodule Lychee-front
updated
14 files
| +33 −11 | API.md | |
| +43 −2 | gulpfile.js | |
| +1 −1 | package.json | |
| +29 −8 | scripts/build.js | |
| +151 −0 | scripts/frame/main.js | |
| +2 −0 | scripts/frame/stackblur.min.js | |
| +3 −0 | scripts/init.js | |
| +12 −6 | scripts/lychee.js | |
| +7 −1 | scripts/lychee_locale.js | |
| +53 −0 | scripts/photo.js | |
| +38 −1 | scripts/settings.js | |
| +32 −3 | scripts/view.js | |
| +1 −0 | styles/_content.scss | |
| +6 −2 | styles/_settings.scss |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,41 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * Update to version 3.2.11 | ||
| */ | ||
|
|
||
| use Lychee\Modules\Database; | ||
| use Lychee\Modules\Response; | ||
|
|
||
| // Add image_overlay_type to settings | ||
| $query = Database::prepare($connection, "SELECT `key` FROM `?` WHERE `key` = 'image_overlay_type' LIMIT 1", array(LYCHEE_TABLE_SETTINGS)); | ||
| $result = Database::execute($connection, $query, 'update_030211', __LINE__); | ||
|
|
||
| if ($result===false) Response::error('Could not get current image_overlay_type from database!'); | ||
|
|
||
| if ($result->num_rows===0) { | ||
|
|
||
| $query = Database::prepare($connection, "INSERT INTO `?` (`key`, `value`) VALUES ('image_overlay_type', 'exif')", array(LYCHEE_TABLE_SETTINGS)); | ||
| $result = Database::execute($connection, $query, 'update_030211', __LINE__); | ||
|
|
||
| if ($result===false) Response::error('Could not add image_overlay_type to database!'); | ||
|
|
||
| } | ||
|
|
||
| // Add php_script_limit to settings | ||
| $query = Database::prepare($connection, "SELECT `key` FROM `?` WHERE `key` = 'php_script_limit' LIMIT 1", array(LYCHEE_TABLE_SETTINGS)); | ||
| $result = Database::execute($connection, $query, 'update_030211', __LINE__); | ||
|
|
||
| if ($result===false) Response::error('Could not get current php_script_limit from database!'); | ||
|
|
||
| if ($result->num_rows===0) { | ||
|
|
||
| $query = Database::prepare($connection, "INSERT INTO `?` (`key`, `value`) VALUES ('php_script_limit', '0')", array(LYCHEE_TABLE_SETTINGS)); | ||
| $result = Database::execute($connection, $query, 'update_030211', __LINE__); | ||
|
|
||
| if ($result===false) Response::error('Could not add php_script_limit to database!'); | ||
| } | ||
|
|
||
|
|
||
| // Set version | ||
| if (Database::setVersion($connection, 'update_030211')===false) Response::error('Could not update version of database!'); | ||
ildyria marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or 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.10 | ||
| 3.2.11 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.