Changeset 19785
- Timestamp:
- 07/01/09 13:28:24 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/csDoctrineActAsAttachablePlugin/branches/1.3/lib/model/doctrine/PluginAttachment.class.php
r19639 r19785 16 16 public function getDefaultFilepath() 17 17 { 18 sfLoader::loadHelpers('Url'); 18 sfApplicationConfiguration::getActive()->loadHelpers('Url'); 19 19 20 return public_path($this->getUploadPath()); 20 21 } 21 22 public function getUploadPath() 22 23 { 23 return sfConfig::get('sf_upload_dir').DIRECTORY_SEPARATOR.strtolower($this->getObjectClass()).DIRECTORY_SEPARATOR.$this->getUrl();24 return 'uploads/'.strtolower($this->getObjectClass()).'/'.$this->getUrl(); 24 25 } 25 26 public function getAttachmentRoute() plugins/csDoctrineActAsAttachablePlugin/trunk/lib/model/doctrine/PluginAttachment.class.php
r19639 r19785 21 21 public function getUploadPath() 22 22 { 23 return sfConfig::get('sf_upload_dir').DIRECTORY_SEPARATOR.strtolower($this->getObjectClass()).DIRECTORY_SEPARATOR.$this->getUrl();23 return 'uploads/'.strtolower($this->getObjectClass()).'/'.$this->getUrl(); 24 24 } 25 25 public function getAttachmentRoute()