Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
photos
Commits
8e8fd914
Commit
8e8fd914
authored
Jun 29, 2014
by
Tobias Reich
Browse files
Fixed a bug with smart albums
parent
04487180
Changes
1
Hide whitespace changes
Inline
Side-by-side
php/modules/Album.php
View file @
8e8fd914
...
...
@@ -64,15 +64,15 @@ class Album extends Module {
switch
(
$this
->
albumIDs
)
{
case
'f'
:
$return
[
'public'
]
=
false
;
$query
=
"SELECT id, title, tags, public, star, album, thumbUrl FROM lychee_photos WHERE star = 1 "
.
$this
->
settings
[
'sorting'
];
$query
=
"SELECT id, title, tags, public, star, album, thumbUrl
, takestamp
FROM lychee_photos WHERE star = 1 "
.
$this
->
settings
[
'sorting'
];
break
;
case
's'
:
$return
[
'public'
]
=
false
;
$query
=
"SELECT id, title, tags, public, star, album, thumbUrl FROM lychee_photos WHERE public = 1 "
.
$this
->
settings
[
'sorting'
];
$query
=
"SELECT id, title, tags, public, star, album, thumbUrl
, takestamp
FROM lychee_photos WHERE public = 1 "
.
$this
->
settings
[
'sorting'
];
break
;
case
'0'
:
$return
[
'public'
]
=
false
;
$query
=
"SELECT id, title, tags, public, star, album, thumbUrl FROM lychee_photos WHERE album = 0 "
.
$this
->
settings
[
'sorting'
];
$query
=
"SELECT id, title, tags, public, star, album, thumbUrl
, takestamp
FROM lychee_photos WHERE album = 0 "
.
$this
->
settings
[
'sorting'
];
break
;
default
:
$albums
=
$this
->
database
->
query
(
"SELECT * FROM lychee_albums WHERE id = '
$this->albumIDs
' LIMIT 1;"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment