From 5cac86d87f9c91c1a287ddee87f2de6e3c76af22 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 3 Sep 2016 13:55:29 +0200 Subject: [PATCH] More hashes to get rid of. --- import_albums.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/import_albums.php b/import_albums.php index 60dbd2a..e116f81 100644 --- a/import_albums.php +++ b/import_albums.php @@ -175,9 +175,9 @@ for ($i = 0; $i < $num_photos; $i += 50) [ 'id_user_uploaded' => $old_user_id_to_new_user_id[$photo['owner_id']], 'subdir' => $dirnames_by_old_album_id[$photo['parent_id']], - 'filename' => $photo['name'], + 'filename' => str_replace('#', '', $photo['name']), 'title' => $photo['title'], - 'slug' => $photo['relative_url_cache'], + 'slug' => str_replace('#', '', urldecode($photo['relative_url_cache'])), 'mimetype' => $photo['mime_type'], 'image_width' => !empty($photo['width']) ? $photo['width'] : 'NULL', 'image_height' => !empty($photo['height']) ? $photo['height'] : 'NULL',