From a09a50670cde5d077d7eb07393b006126f514f49 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rub=C3=A9n=20Calvo?= <rubencm@gmail.com>
Date: Fri, 21 Jul 2017 12:04:06 +0200
Subject: [PATCH] [ticket/15287] Fix variable name

PHPBB3-15287
---
 phpBB/phpbb/storage/adapter/local.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/phpBB/phpbb/storage/adapter/local.php b/phpBB/phpbb/storage/adapter/local.php
index 319308527d..a8498d6d8c 100644
--- a/phpBB/phpbb/storage/adapter/local.php
+++ b/phpBB/phpbb/storage/adapter/local.php
@@ -188,7 +188,7 @@ class local implements adapter_interface
 	protected function ensure_directory_exists($path)
 	{
 		$path = dirname($this->root_path . $path);
-		$path = filesystem_helper::make_path_relative($directory, $this->root_path);
+		$path = filesystem_helper::make_path_relative($path, $this->root_path);
 
 		if (!$this->exists($path))
 		{