From db110d29377c39326b050f30109833b8f616b24a Mon Sep 17 00:00:00 2001 From: glubsy Date: Mon, 25 Jan 2021 04:07:37 +0000 Subject: [PATCH] Rename variable The href is converted to path. --- src/_h5ai/private/php/core/class-context.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/_h5ai/private/php/core/class-context.php b/src/_h5ai/private/php/core/class-context.php index 35cf4f019..b85047783 100644 --- a/src/_h5ai/private/php/core/class-context.php +++ b/src/_h5ai/private/php/core/class-context.php @@ -252,16 +252,16 @@ public function get_thumbs($requests) { $hrefs = []; $thumbs = []; foreach ($requests as $req) { - $href = $this->to_path($req['href']); - if (!array_key_exists($href, $thumbs)) { - $thumbs[$href] = new Thumb($this, $href, $req['type']); + $path = $this->to_path($req['href']); + if (!array_key_exists($path, $thumbs)) { + $thumbs[$path] = new Thumb($this, $path, $req['type']); } - else if ($thumbs[$href]->type === 'file') { + else if ($thumbs[$path]->type === 'file') { // File has already been mime tested and cannot have a thumbnail $hrefs[] = null; continue; } - $hrefs[] = $thumbs[$href]->thumb($this->thumbnail_width, $this->thumbnail_height); + $hrefs[] = $thumbs[$path]->thumb($this->thumbnail_width, $this->thumbnail_height); } return $hrefs; }