Skip to content

Commit

Permalink
(Fixes issue 1975)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyboard.idol@gmail.com committed Jan 13, 2011
1 parent 4048fdd commit 2e8e1d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Expand Up @@ -21,6 +21,7 @@ Version 1.1.6 to be released
- Bug #1942: Fixed the bug that CSecurityManager::computeHMAC() generates non-standard HMAC (Qiang)
- Bug #1945: Fixed the bug that user-supplied form ID is not honored when building a form using CForm with a model (Qiang)
- Bug #1948: Fixed a bug in generating the number symbols of I18N data from CLDR (Qiang)
- Bug #1975: Fixed the bug that caused a PHP error when CAssetManager::publish() tried to create a symlink in a non-existing directory (Y!!)
- Bug: Fixed the bug that CActiveForm generates unnecessary js code about setting focus (Qiang)
- Bug: Fixed CDateTimeParser::parse() default hour, minute and second handling when they are not used in pattern (Sam Dark)
- Enh #1733: Updated multifile plugin used by CMultiFileUpload to version 1.47 (mdomba)
Expand Down
7 changes: 7 additions & 0 deletions framework/web/CAssetManager.php
Expand Up @@ -165,7 +165,14 @@ public function publish($path,$hashByName=false,$level=-1,$forceCopy=false)
if($this->linkAssets)
{
if(!is_file($dstFile))
{
if(!is_dir($dstDir))
{
mkdir($dstDir);
@chmod($dstDir,0777);
}
symlink($src,$dstFile);
}
}
else if(@filemtime($dstFile)<@filemtime($src) || $forceCopy)
{
Expand Down

0 comments on commit 2e8e1d9

Please sign in to comment.