From 2e82ae64fdfe50042f9014b1bc52b70003f6e17a Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Wed, 9 Apr 2014 20:26:44 +0200 Subject: [PATCH] Added __DIR__ to Album.php --- php/modules/Album.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/modules/Album.php b/php/modules/Album.php index 1b4a9ab..15e2d81 100644 --- a/php/modules/Album.php +++ b/php/modules/Album.php @@ -254,7 +254,7 @@ class Album extends Module { # Parse each url while ($photo = $photos->fetch_object()) { - $files[$i] = '../uploads/big/' . $photo->url; + $files[$i] = __DIR__ . '/../../uploads/big/' . $photo->url; $i++; } @@ -263,7 +263,7 @@ class Album extends Module { if ($this->albumIDs!=0&&is_numeric($this->albumIDs)) $zipTitle = $album->fetch_object()->title; # Create zip - $filename = "../data/$zipTitle.zip"; + $filename = __DIR__ . "/../../data/$zipTitle.zip"; if ($zip->open($filename, ZIPARCHIVE::CREATE)!==TRUE) return false; # Add each photo