Author: rande
Date: 2010-01-12 01:54:48 +0100 (Tue, 12 Jan 2010)
New Revision: 26513
Modified:
plugins/swDoctrineAssetsLibraryPlugin/branches/sf1.3/lib/model/doctrine/PluginsfAsset.class.php
plugins/swDoctrineAssetsLibraryPlugin/branches/sf1.3/lib/model/doctrine/PluginsfAssetFolderTable.class.php
Log:
[swDoctrineAssetsLibraryPlugin] add fix
Modified:
plugins/swDoctrineAssetsLibraryPlugin/branches/sf1.3/lib/model/doctrine/PluginsfAsset.class.php
===================================================================
---
plugins/swDoctrineAssetsLibraryPlugin/branches/sf1.3/lib/model/doctrine/PluginsfAsset.class.php
2010-01-12 00:22:55 UTC (rev 26512)
+++
plugins/swDoctrineAssetsLibraryPlugin/branches/sf1.3/lib/model/doctrine/PluginsfAsset.class.php
2010-01-12 00:54:48 UTC (rev 26513)
@@ -5,9 +5,10 @@
*/
abstract class PluginsfAsset extends BasesfAsset
{
- protected $binary_data = null;
- protected $old_locations = null;
- protected $old_folder_id = null;
+ protected
+ $binary_data = null,
+ $old_locations = null,
+ $old_folder_id = null;
/*
* Get folder relative path
@@ -153,7 +154,7 @@
}
}
- $this->setFilesize((int) filesize($asset_path) / 1024);
+ $this->setFilesize(((int) filesize($asset_path) / 1024));
$this->autoSetType();
if (sfConfig::get('app_swDoctrineAssetsLibrary_check_type', false) &&
!in_array($this->getType(), sfConfig::get('app_swDoctrineAssetsLibrary_types',
array('image', 'txt', 'archive', 'pdf', 'xls', 'doc', 'ppt'))))
{
@@ -288,7 +289,7 @@
public function save(Doctrine_Connection $conn = null)
{
- $modified_fields = $this->modifiedFields();
+ $modified_fields = $this->getModified();
if(array_key_exists('filename', $modified_fields) && $this->old_locations)
{
Modified:
plugins/swDoctrineAssetsLibraryPlugin/branches/sf1.3/lib/model/doctrine/PluginsfAssetFolderTable.class.php
===================================================================
---
plugins/swDoctrineAssetsLibraryPlugin/branches/sf1.3/lib/model/doctrine/PluginsfAssetFolderTable.class.php
2010-01-12 00:22:55 UTC (rev 26512)
+++
plugins/swDoctrineAssetsLibraryPlugin/branches/sf1.3/lib/model/doctrine/PluginsfAssetFolderTable.class.php
2010-01-12 00:54:48 UTC (rev 26513)
@@ -13,7 +13,7 @@
*/
public static function getRoot()
{
- return Doctrine::getTable('sfAssetFolder')->getTree()->findRoot();
+ return Doctrine::getTable('sfAssetFolder')->getTree()->fetchRoot();
}
/**
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.