Commit fbf1603b by Taylor Otwell

add comment about url::to_asset.

parent e9a43326
...@@ -19,6 +19,8 @@ class URL { ...@@ -19,6 +19,8 @@ class URL {
$base = Config::get('application.url'); $base = Config::get('application.url');
// If the URL is being generated for a public asset such as an
// image, we do not want to include "index.php" in the path.
if ( ! $asset) if ( ! $asset)
{ {
$base .= '/'.Config::get('application.index'); $base .= '/'.Config::get('application.index');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment