Development

Changeset 19785

You must first sign up to be able to contribute.

Changeset 19785

Show
Ignore:
Timestamp:
07/01/09 13:28:24 (4 years ago)
Author:
gimler
Message:

csDoctrineActAsAttachablePlugin: fix deprecated warning in 1.3; revert r19639 it did not work correct ;(

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/csDoctrineActAsAttachablePlugin/branches/1.3/lib/model/doctrine/PluginAttachment.class.php

    r19639 r19785  
    1616  public function getDefaultFilepath() 
    1717  { 
    18     sfLoader::loadHelpers('Url'); 
     18    sfApplicationConfiguration::getActive()->loadHelpers('Url'); 
     19 
    1920    return public_path($this->getUploadPath()); 
    2021  } 
    2122  public function getUploadPath() 
    2223  { 
    23     return sfConfig::get('sf_upload_dir').DIRECTORY_SEPARATOR.strtolower($this->getObjectClass()).DIRECTORY_SEPARATOR.$this->getUrl(); 
     24    return 'uploads/'.strtolower($this->getObjectClass()).'/'.$this->getUrl(); 
    2425  } 
    2526  public function getAttachmentRoute() 
  • plugins/csDoctrineActAsAttachablePlugin/trunk/lib/model/doctrine/PluginAttachment.class.php

    r19639 r19785  
    2121  public function getUploadPath() 
    2222  { 
    23     return sfConfig::get('sf_upload_dir').DIRECTORY_SEPARATOR.strtolower($this->getObjectClass()).DIRECTORY_SEPARATOR.$this->getUrl(); 
     23    return 'uploads/'.strtolower($this->getObjectClass()).'/'.$this->getUrl(); 
    2424  } 
    2525  public function getAttachmentRoute()