Skip to content
This repository was archived by the owner on Nov 16, 2020. It is now read-only.
/ symfony1 Public archive

Commit c932b32

Browse files
committed
RELEASE_1_4_15 => v1.4.15 commit
1 parent 08d63da commit c932b32

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+89
-60
lines changed

CHANGELOG

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
CHANGELOG
2+
=========
3+
4+
10/27/11: Version 1.4.15
5+
------------------------
6+
7+
* [33151] fixed usage of mb_strlen in tasks (closes #9940)
8+
* [33149] added missing admin.delete_object event (closes #9943)
9+
* [33137] fixed multiple database support in Propel plugin (for the generator and sfPropelData, closes #8345)
10+
* [33125] fixed the possibility to include files included in an exclude rule in the deploy task (closes #9912)
11+
* [33122] fixed include|get_component when sfPartialView class is customized (closes #9932)
12+
* [33121] fixed protocol relative URL in the asset helper (closes #9936)
13+
* [33053] fixed typo (closes #9927, based on a patch from pmallet)
14+
115
09/16/11: Version 1.4.14
216
------------------------
317

lib/autoload/sfCoreAutoload.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* The current symfony version.
1313
*/
14-
define('SYMFONY_VERSION', '1.4.14');
14+
define('SYMFONY_VERSION', '1.4.15');
1515

1616
/**
1717
* sfCoreAutoload class.

lib/command/sfCommandApplication.class.php

+10-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* @package symfony
1515
* @subpackage command
1616
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
17-
* @version SVN: $Id: sfCommandApplication.class.php 23218 2009-10-20 20:59:02Z FabianLange $
17+
* @version SVN: $Id: sfCommandApplication.class.php 33151 2011-10-24 08:55:03Z fabien $
1818
*/
1919
abstract class sfCommandApplication
2020
{
@@ -519,7 +519,15 @@ public function getTaskToExecute($name)
519519

520520
protected function strlen($string)
521521
{
522-
return function_exists('mb_strlen') ? mb_strlen($string) : strlen($string);
522+
if (!function_exists('mb_strlen')) {
523+
return strlen($string);
524+
}
525+
526+
if (false === $encoding = mb_detect_encoding($string)) {
527+
return strlen($string);
528+
}
529+
530+
return mb_strlen($string, $encoding);
523531
}
524532

525533
/**

lib/helper/AssetHelper.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @subpackage helper
1717
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
1818
* @author David Heinemeier Hansson
19-
* @version SVN: $Id: AssetHelper.php 24289 2009-11-23 19:45:06Z Kris.Wallsmith $
19+
* @version SVN: $Id: AssetHelper.php 33121 2011-10-07 12:29:09Z fabien $
2020
*/
2121

2222
/**
@@ -374,7 +374,7 @@ function image_tag($source, $options = array())
374374

375375
function _compute_public_path($source, $dir, $ext, $absolute = false)
376376
{
377-
if (strpos($source, '://'))
377+
if (strpos($source, '://') || strpos($source, '//') === 0)
378378
{
379379
return $source;
380380
}

lib/helper/PartialHelper.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* @package symfony
1515
* @subpackage helper
1616
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
17-
* @version SVN: $Id: PartialHelper.php 27755 2010-02-08 20:51:02Z Kris.Wallsmith $
17+
* @version SVN: $Id: PartialHelper.php 33122 2011-10-07 12:42:49Z fabien $
1818
*/
1919

2020
/**
@@ -136,6 +136,8 @@ function get_component($moduleName, $componentName, $vars = array())
136136
$context = sfContext::getInstance();
137137
$actionName = '_'.$componentName;
138138

139+
require($context->getConfigCache()->checkConfig('modules/'.$moduleName.'/config/module.yml'));
140+
139141
$class = sfConfig::get('mod_'.strtolower($moduleName).'_partial_view_class', 'sf').'PartialView';
140142
$view = new $class($context, $moduleName, $actionName, '');
141143
$view->setPartialVars(true === sfConfig::get('sf_escaping_strategy') ? sfOutputEscaper::unescape($vars) : $vars);

lib/plugins/sfDoctrinePlugin/data/generator/sfDoctrineModule/admin/parts/batchAction.php

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ protected function executeBatchDelete(sfWebRequest $request)
5454

5555
foreach ($records as $record)
5656
{
57+
$this->dispatcher->notify(new sfEvent($this, 'admin.delete_object', array('object' => $record)));
58+
5759
$record->delete();
5860
}
5961

lib/plugins/sfDoctrinePlugin/lib/form/sfFormFilterDoctrine.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* @subpackage form
2222
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
2323
* @author Jonathan H. Wage <jonwage@gmail.com>
24-
* @version SVN: $Id: sfFormFilterDoctrine.class.php 32740 2011-07-09 09:24:03Z fabien $
24+
* @version SVN: $Id: sfFormFilterDoctrine.class.php 33150 2011-10-24 07:57:16Z fabien $
2525
*/
2626
abstract class sfFormFilterDoctrine extends sfFormFilter
2727
{

lib/plugins/sfPropelPlugin/lib/addon/sfPropelData.class.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @package symfony
1616
* @subpackage propel
1717
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
18-
* @version SVN: $Id: sfPropelData.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
18+
* @version SVN: $Id: sfPropelData.class.php 33137 2011-10-18 13:05:25Z fabien $
1919
*/
2020
class sfPropelData extends sfData
2121
{
@@ -38,7 +38,7 @@ public function loadData($directoryOrFile = null, $connectionName = 'propel')
3838
$files = $this->getFiles($directoryOrFile);
3939

4040
// load map classes
41-
$this->loadMapBuilders();
41+
$this->loadMapBuilders($connectionName);
4242
$this->dbMap = Propel::getDatabaseMap($connectionName);
4343

4444
// wrap all database operations in a single transaction
@@ -267,14 +267,14 @@ protected function doDeleteCurrentData($files)
267267
*
268268
* @throws sfException If the class cannot be found
269269
*/
270-
protected function loadMapBuilders()
270+
protected function loadMapBuilders($connectionName)
271271
{
272272
$dbMap = Propel::getDatabaseMap();
273273
$files = sfFinder::type('file')->name('*TableMap.php')->in(sfProjectConfiguration::getActive()->getModelDirs());
274274
foreach ($files as $file)
275275
{
276276
$omClass = basename($file, 'TableMap.php');
277-
if (class_exists($omClass) && is_subclass_of($omClass, 'BaseObject'))
277+
if (class_exists($omClass) && is_subclass_of($omClass, 'BaseObject') && constant($omClass.'Peer::DATABASE_NAME') == $connectionName)
278278
{
279279
$tableMapClass = basename($file, '.php');
280280
$dbMap->addTableFromMapClass($tableMapClass);
@@ -323,7 +323,7 @@ public function dumpData($directoryOrFile, $tables = 'all', $connectionName = 'p
323323
*/
324324
public function getData($tables = 'all', $connectionName = 'propel')
325325
{
326-
$this->loadMapBuilders();
326+
$this->loadMapBuilders($connectionName);
327327
$this->con = Propel::getConnection($connectionName);
328328
$this->dbMap = Propel::getDatabaseMap($connectionName);
329329

lib/plugins/sfPropelPlugin/lib/generator/sfPropelFormFilterGenerator.class.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @package symfony
1717
* @subpackage generator
1818
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
19-
* @version SVN: $Id: sfPropelFormFilterGenerator.class.php 24392 2009-11-25 18:35:39Z FabianLange $
19+
* @version SVN: $Id: sfPropelFormFilterGenerator.class.php 33137 2011-10-18 13:05:25Z fabien $
2020
*/
2121
class sfPropelFormFilterGenerator extends sfPropelFormGenerator
2222
{
@@ -60,8 +60,6 @@ public function generate($params = array())
6060

6161
$this->loadBuilders();
6262

63-
$this->dbMap = Propel::getDatabaseMap($this->params['connection']);
64-
6563
// create the project base class for all forms
6664
$file = sfConfig::get('sf_lib_dir').'/filter/BaseFormFilterPropel.class.php';
6765
if (!file_exists($file))

lib/plugins/sfPropelPlugin/lib/generator/sfPropelFormGenerator.class.php

+3-6
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @package symfony
1717
* @subpackage generator
1818
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
19-
* @version SVN: $Id: sfPropelFormGenerator.class.php 29661 2010-05-28 16:56:42Z Kris.Wallsmith $
19+
* @version SVN: $Id: sfPropelFormGenerator.class.php 33137 2011-10-18 13:05:25Z fabien $
2020
*/
2121
class sfPropelFormGenerator extends sfGenerator
2222
{
@@ -61,10 +61,8 @@ public function generate($params = array())
6161
$this->params['form_dir_name'] = 'form';
6262
}
6363

64-
$this->dbMap = Propel::getDatabaseMap($this->params['connection']);
65-
6664
$this->loadBuilders();
67-
65+
6866
// create the project base class for all forms
6967
$file = sfConfig::get('sf_lib_dir').'/form/BaseFormPropel.class.php';
7068
if (!file_exists($file))
@@ -515,12 +513,11 @@ protected function loadBuilders()
515513
foreach ($classes as $class)
516514
{
517515
$omClass = basename($class, 'TableMap.php');
518-
if (class_exists($omClass) && is_subclass_of($omClass, 'BaseObject'))
516+
if (class_exists($omClass) && is_subclass_of($omClass, 'BaseObject') && constant($omClass.'Peer::DATABASE_NAME') == $this->params['connection'])
519517
{
520518
$tableMapClass = basename($class, '.php');
521519
$this->dbMap->addTableFromMapClass($tableMapClass);
522520
}
523521
}
524522
}
525523
}
526-
Binary file not shown.

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/map/ArticleTableMap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:31 2011
10+
* Thu Oct 27 07:31:26 2011
1111
*
1212
*
1313
* This map class is used by Propel to do runtime db structure discovery.

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/map/AttachmentTableMap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:32 2011
10+
* Thu Oct 27 07:31:28 2011
1111
*
1212
*
1313
* This map class is used by Propel to do runtime db structure discovery.

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/map/AuthorArticleTableMap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:32 2011
10+
* Thu Oct 27 07:31:27 2011
1111
*
1212
*
1313
* This map class is used by Propel to do runtime db structure discovery.

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/map/AuthorTableMap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:31 2011
10+
* Thu Oct 27 07:31:26 2011
1111
*
1212
*
1313
* This map class is used by Propel to do runtime db structure discovery.

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/map/BookTableMap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:31 2011
10+
* Thu Oct 27 07:31:26 2011
1111
*
1212
*
1313
* This map class is used by Propel to do runtime db structure discovery.

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/map/CategoryTableMap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:31 2011
10+
* Thu Oct 27 07:31:26 2011
1111
*
1212
*
1313
* This map class is used by Propel to do runtime db structure discovery.

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/map/MovieI18nTableMap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:32 2011
10+
* Thu Oct 27 07:31:28 2011
1111
*
1212
*
1313
* This map class is used by Propel to do runtime db structure discovery.

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/map/MovieTableMap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:32 2011
10+
* Thu Oct 27 07:31:27 2011
1111
*
1212
*
1313
* This map class is used by Propel to do runtime db structure discovery.

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/map/ProductI18nTableMap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:32 2011
10+
* Thu Oct 27 07:31:27 2011
1111
*
1212
*
1313
* This map class is used by Propel to do runtime db structure discovery.

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/map/ProductTableMap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:32 2011
10+
* Thu Oct 27 07:31:27 2011
1111
*
1212
*
1313
* This map class is used by Propel to do runtime db structure discovery.

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/om/BaseArticle.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:31 2011
10+
* Thu Oct 27 07:31:26 2011
1111
*
1212
* @package lib.model.om
1313
*/

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/om/BaseArticlePeer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:31 2011
10+
* Thu Oct 27 07:31:26 2011
1111
*
1212
* @package lib.model.om
1313
*/

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/om/BaseAttachment.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:32 2011
10+
* Thu Oct 27 07:31:28 2011
1111
*
1212
* @package lib.model.om
1313
*/

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/om/BaseAttachmentPeer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:32 2011
10+
* Thu Oct 27 07:31:28 2011
1111
*
1212
* @package lib.model.om
1313
*/

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/om/BaseAuthor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:31 2011
10+
* Thu Oct 27 07:31:26 2011
1111
*
1212
* @package lib.model.om
1313
*/

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/om/BaseAuthorArticle.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:32 2011
10+
* Thu Oct 27 07:31:27 2011
1111
*
1212
* @package lib.model.om
1313
*/

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/om/BaseAuthorArticlePeer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:31 2011
10+
* Thu Oct 27 07:31:26 2011
1111
*
1212
* @package lib.model.om
1313
*/

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/om/BaseAuthorPeer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:31 2011
10+
* Thu Oct 27 07:31:26 2011
1111
*
1212
* @package lib.model.om
1313
*/

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/om/BaseBook.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:31 2011
10+
* Thu Oct 27 07:31:26 2011
1111
*
1212
* @package lib.model.om
1313
*/

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/om/BaseBookPeer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:31 2011
10+
* Thu Oct 27 07:31:26 2011
1111
*
1212
* @package lib.model.om
1313
*/

lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/om/BaseCategory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This class was autogenerated by Propel 1.4.2 on:
99
*
10-
* Fri Sep 16 11:31:31 2011
10+
* Thu Oct 27 07:31:26 2011
1111
*
1212
* @package lib.model.om
1313
*/

0 commit comments

Comments
 (0)