From 587f8e085c8bf3caa07733ad586cf7524665de9d Mon Sep 17 00:00:00 2001
From: robocoder <anthon.pang@gmail.com>
Date: Mon, 5 Jul 2010 05:58:14 +0000
Subject: [PATCH] refs #1461 - s/basedir/dirname/

git-svn-id: http://dev.piwik.org/svn/trunk@2427 59fd770c-687e-43c8-a1e3-f5a4ff64c105
---
 core/Http.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/Http.php b/core/Http.php
index 0d5df681c6..f435a0015b 100644
--- a/core/Http.php
+++ b/core/Http.php
@@ -62,7 +62,7 @@ class Piwik_Http
 		if($destinationPath)
 		{
 			// Ensure destination directory exists 
-			Piwik_Common::mkdir(basedir($destinationPath));
+			Piwik_Common::mkdir(dirname($destinationPath));
 			if (($file = @fopen($destinationPath, 'wb')) === false || !is_resource($file))
 			{
 				throw new Exception('Error while creating the file: ' . $destinationPath);
-- 
GitLab