Added __DIR__ to Album.php
This commit is contained in:
parent
650b496ebc
commit
2e82ae64fd
@ -254,7 +254,7 @@ class Album extends Module {
|
|||||||
|
|
||||||
# Parse each url
|
# Parse each url
|
||||||
while ($photo = $photos->fetch_object()) {
|
while ($photo = $photos->fetch_object()) {
|
||||||
$files[$i] = '../uploads/big/' . $photo->url;
|
$files[$i] = __DIR__ . '/../../uploads/big/' . $photo->url;
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -263,7 +263,7 @@ class Album extends Module {
|
|||||||
if ($this->albumIDs!=0&&is_numeric($this->albumIDs)) $zipTitle = $album->fetch_object()->title;
|
if ($this->albumIDs!=0&&is_numeric($this->albumIDs)) $zipTitle = $album->fetch_object()->title;
|
||||||
|
|
||||||
# Create zip
|
# Create zip
|
||||||
$filename = "../data/$zipTitle.zip";
|
$filename = __DIR__ . "/../../data/$zipTitle.zip";
|
||||||
if ($zip->open($filename, ZIPARCHIVE::CREATE)!==TRUE) return false;
|
if ($zip->open($filename, ZIPARCHIVE::CREATE)!==TRUE) return false;
|
||||||
|
|
||||||
# Add each photo
|
# Add each photo
|
||||||
|
Loading…
Reference in New Issue
Block a user