Skip to content

Commit

Permalink
path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
noumo committed May 13, 2015
1 parent ac36f2d commit 451a11c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static function getUploadPath($dir)

static function getLink($fileName)
{
return Url::base(true) . str_replace('\\', '/', str_replace(Yii::getAlias('@webroot'), '', $fileName));
return str_replace('\\', '/', str_replace(Yii::getAlias('@webroot'), '', $fileName));
}

static function getFileName($fileInstanse, $namePostfix = true)
Expand All @@ -48,4 +48,4 @@ static function getFileName($fileInstanse, $namePostfix = true)

return $fileName;
}
}
}

0 comments on commit 451a11c

Please sign in to comment.