Hello
I'm using the latest version of symfony (cheked out from svn).
In my application, I need some properties from sfConfig. After updating
symfony, somewhere in my task, I had to turn sf_app_dir into
sf_app*s*_dir. In fact, when I tried var_dump(sfConfig::getAll());
sf_app_dir was no more listed but sf_apps_dir was.
/I would like to know what is the difference between sf_app_dir_* and
sf_apps_dir?/
I also found out that somewhere else in the 'official' tasks, sf_app_dir
is used (2 times) :
http://trac.symfony-project.com/trac/browser/trunk/lib/task/i18n/sfI18nFindTask.class.php?rev=4743#L52
.... It may be causing the task to crash (I didn't try). If I'm right,
I'm joining a patch to solve the bug.
:-)
Nicolas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Index: lib/symfony/task/i18n/sfI18nFindTask.class.php
===================================================================
--- lib/symfony/task/i18n/sfI18nFindTask.class.php (revision 4893)
+++ lib/symfony/task/i18n/sfI18nFindTask.class.php (working copy)
@@ -49,11 +49,11 @@
sfCore::initDirectoryLayout(sfConfig::get('sf_root_dir'),
$arguments['application'], $options['env']);
// Look in templates
- $moduleNames =
sfFinder::type('dir')->maxdepth(0)->ignore_version_control()->relative()->in(sfConfig::get('sf_app_dir').'/modules');
+ $moduleNames =
sfFinder::type('dir')->maxdepth(0)->ignore_version_control()->relative()->in(sfConfig::get('sf_apps_dir').'/modules');
$strings = array();
foreach ($moduleNames as $moduleName)
{
- $dir = sfConfig::get('sf_app_dir').'/modules/'.$moduleName.'/templates';
+ $dir = sfConfig::get('sf_apps_dir').'/modules/'.$moduleName.'/templates';
$templates = sfFinder::type('file')->name('*.php')->relative()->in($dir);
foreach ($templates as $template)
{