Commit Graph

31 Commits

Author SHA1 Message Date
Nils Asmussen
9b5328d888 Don't validate merge request on server.
Since we don't show the user invalid merge requests to send to the
server, the user would have to handcraft such requests. Only admins can
merge albums, which we trust anyway. So, let's remove this check.
2016-08-03 22:58:17 +02:00
Tobias Reich
0c7d95fb15 Syntax adjustments 2016-07-31 15:53:34 +02:00
Tobias Reich
1020b0d1dc Merge branch 'subalbums' of https://github.com/hrniels/Lychee into feature/subalbums 2016-07-31 15:26:34 +02:00
Nils Asmussen
daf7d37c84 Prevent album merge errors on client-side.
Previously, we allowed that and reported an error in this case. Now,
the user can no longer select a parent album for merging it into a
subalbum. It is still checked on the server, though.
2016-07-30 12:04:07 +02:00
Nils Asmussen
6feae99bf1 Include subalbums in setPublic.
That means, when making an album public or private, all subalbums
are made public/private as well. This can be changed afterwards
by performing the opposite operation for a subalbum.

I think this is the better default, since most people probably
won't have public albums with private subalbums.
2016-07-29 22:36:41 +02:00
Nils Asmussen
1b6c74bcb6 Merge albums including subalbums. 2016-07-29 22:36:41 +02:00
Nils Asmussen
eddb666b5a Delete albums including subalbums. 2016-07-29 22:36:41 +02:00
Nils Asmussen
212b241d0e Include subalbums in album archives. 2016-07-29 22:36:41 +02:00
Nils Asmussen
ef9040870a Added basic subalbum support.
That is, albums can now contain other albums, which are shown at
the top of the album view. This required some changes to album.js
and the contextMenu.js, because this view contains now both
photos and albums.

The contextMenu on this view has been kept simple by requiring
the user to select either only albums or only photos, but not
a mixture of both.

This feature required a database change, so that the version
has been updated to 3.1.3.

At the moment, album and photo operations (make public, download,
delete, merge) are still "flat", i.e. don't respect the album
hierarchy.
2016-07-29 22:36:41 +02:00
Tobias Reich
1b8dd24fe1 Prefetch the medium photo instead of the big one #446 2016-07-02 14:53:25 +02:00
Tobias Reich
152a887bc4 Updated comments due to id type changes #487 2016-03-24 18:41:33 +01:00
Quentin Ligier
44c54c48f6 Modifications arround getExtension 2016-03-17 19:21:59 +01:00
Quentin Ligier
e93564c3e0 Rewrite of getExtension 2016-03-16 17:07:22 +01:00
Quentin Ligier
f6926f1670 Replacing date by strftime
This allows date translation
2016-03-15 13:28:39 +01:00
Tobias Reich
976635254e Album id now based on the current microtime #27 2016-03-12 23:51:33 +01:00
Tobias Reich
9117402035 Return the correct insert_id when adding a new album 2016-03-06 21:01:51 +01:00
Tobias Reich
bad7819ff6 Moved Album::getAll into a separated file 2016-02-14 14:49:51 +01:00
Tobias Reich
a02ba0143f Improved error handling when album/photo not found 2016-02-13 23:37:25 +01:00
Tobias Reich
025f6e974b Added phpDoc comments 2016-02-13 22:43:07 +01:00
Tobias Reich
aa00ebc77b Removed unnecessary title trimming 2016-02-08 22:16:09 +01:00
Tobias Reich
f4e909895f Added Response class to handle exit() responses 2016-02-07 00:16:48 +01:00
Tobias Reich
7b86a737af Added Database::execute to run a query
Database::execute automatically logs errors
2016-01-31 18:49:31 +01:00
Tobias Reich
f650de8967 Removed newline at end of file 2016-01-31 15:53:44 +01:00
Tobias Reich
64e0d66d83 Improved if conditions 2016-01-31 15:44:54 +01:00
Tobias Reich
b78cc31127 Fixed ZipArchive not found 2016-01-30 23:24:08 +01:00
Tobias Reich
e89203bcb1 // for comments and spaces for alignment 2016-01-30 23:03:43 +01:00
Tobias Reich
b13283e4d4 Added Validator, removed Module, changed Access classes 2016-01-30 21:33:31 +01:00
Tobias Reich
ad4fbf3ffd Code style adjustment 2016-01-30 20:22:28 +01:00
Tobias Reich
cafcc2165f Removed unnecessary self::dependencies checks 2016-01-30 01:06:21 +01:00
Tobias Reich
4974adfed0 Activate plugins directly without extending Module 2016-01-30 00:27:50 +01:00
Tobias Reich
6e7dccc037 Renamed folder to Modules 2016-01-26 15:34:51 +01:00