From c6672440e6fc1931203c7d3767d8b202a462aa51 Mon Sep 17 00:00:00 2001 From: Bob VanderClay Date: Wed, 6 Mar 2013 07:37:51 -0800 Subject: [PATCH] Removed leading slash from Assets::web_path(). --- classes/kohana/assets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/kohana/assets.php b/classes/kohana/assets.php index 6ceaeb3..24591c2 100644 --- a/classes/kohana/assets.php +++ b/classes/kohana/assets.php @@ -60,7 +60,7 @@ public static function web_path($type, $file) // Set file $file = substr($file, 0, strrpos($file, $type)).$type; - return Kohana::$config->load('asset-merger.folder').'/'.$type.'/'.$file; + return ltrim(Kohana::$config->load('asset-merger.folder').'/'.$type.'/'.$file, '/'); } // Default short names for types