Syntax adjustments
This commit is contained in:
parent
5d7328613d
commit
0b87e8fe93
@ -58,7 +58,7 @@ class Album extends Module {
|
|||||||
$this->plugins(__METHOD__, 0, func_get_args());
|
$this->plugins(__METHOD__, 0, func_get_args());
|
||||||
|
|
||||||
# Get album information
|
# Get album information
|
||||||
switch($this->albumIDs) {
|
switch ($this->albumIDs) {
|
||||||
|
|
||||||
case 'f': $return['public'] = false;
|
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 FROM lychee_photos WHERE star = 1 " . $this->settings['sorting'];
|
||||||
@ -84,7 +84,7 @@ class Album extends Module {
|
|||||||
# Get photos
|
# Get photos
|
||||||
$photos = $this->database->query($query);
|
$photos = $this->database->query($query);
|
||||||
$previousPhotoID = '';
|
$previousPhotoID = '';
|
||||||
while($photo = $photos->fetch_assoc()) {
|
while ($photo = $photos->fetch_assoc()) {
|
||||||
|
|
||||||
# Parse
|
# Parse
|
||||||
$photo['sysdate'] = date('d F Y', substr($photo['id'], 0, -4));
|
$photo['sysdate'] = date('d F Y', substr($photo['id'], 0, -4));
|
||||||
|
Loading…
Reference in New Issue
Block a user