From d0c81f78dc4744b409713edba796ecc2115040c8 Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Thu, 31 Dec 2015 18:52:56 -0800 Subject: [PATCH] Use the absolute path to the document root when generating asset URL's. --- app/Library/Assets.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/Library/Assets.php b/app/Library/Assets.php index 973a3a09..626bf55a 100644 --- a/app/Library/Assets.php +++ b/app/Library/Assets.php @@ -23,7 +23,7 @@ class Assets public static function scriptIncludes($area = 'app') { if (!Config::get("app.debug")) { - return ''; + return ''; } $scripts = self::mergeGlobs(self::getScriptsForArea($area)); @@ -31,7 +31,7 @@ class Assets foreach ($scripts as $script) { $filename = self::replaceExtensionWith($script, ".coffee", ".js"); - $retVal .= ""; + $retVal .= ""; } return $retVal; @@ -40,7 +40,9 @@ class Assets public static function styleIncludes($area = 'app') { if (!Config::get("app.debug")) { - return ''; + return ''; } $styles = self::mergeGlobs(self::getStylesForArea($area)); @@ -48,7 +50,7 @@ class Assets foreach ($styles as $style) { $filename = self::replaceExtensionWith($style, ".less", ".css"); - $retVal .= ""; + $retVal .= ""; } return $retVal;