From e370772cf9ff1ffaa79f5ea4c73b2d19037144ea Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 3 Feb 2012 13:43:43 -0600 Subject: [PATCH] tweaking provider. --- laravel/cli/tasks/bundle/providers/provider.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/laravel/cli/tasks/bundle/providers/provider.php b/laravel/cli/tasks/bundle/providers/provider.php index 80073710..d6a011ea 100644 --- a/laravel/cli/tasks/bundle/providers/provider.php +++ b/laravel/cli/tasks/bundle/providers/provider.php @@ -38,16 +38,16 @@ protected function zipball($bundle, $url) // bundle contents should be stored in that directory. $zip->extractTo(path('storage').'work'); - $latest = File::latest(dirname($target)); + $latest = File::latest(dirname($target))->getRealPath(); - @chmod($latest->getRealPath(), 0777); + @chmod($latest, 0777); // Once we have the latest modified directory, we should be // able to move its contents over into the bundles folder // so the bundle will be usable by the develoepr. $path = $this->path($bundle); - File::mvdir($latest->getRealPath(), path('bundle').$path); + File::mvdir($latest, path('bundle').$path); @unlink($target); }