Development

Changeset 8782

You must first sign up to be able to contribute.

Changeset 8782

Show
Ignore:
Timestamp:
05/05/08 09:48:43 (1 year ago)
Author:
fabien
Message:

fixed Incorrect File Upload Path (closes #3334)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/helper/ObjectAdminHelper.php

    r8721 r8782  
    3333    if ($include_link = _get_option($options, 'include_link')) 
    3434    { 
    35       $relativeUploadDirName = str_replace(sfConfig::get('sf_web_dir'), '', sfConfig::get('sf_upload_dir')); 
     35      $relativeUploadDirName = ltrim(str_replace(sfConfig::get('sf_web_dir'), '', sfConfig::get('sf_upload_dir')), '/\\'); 
    3636      $image_path = image_path('/'.$relativeUploadDirName.'/'.$include_link.'/'.$value); 
    3737      $image_text = ($include_text = _get_option($options, 'include_text')) ? __($include_text) : __('[show file]'); 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.