Author: david
Date: Fri Nov 4 16:42:01 2011
New Revision: 10273
Log:
Set env. Remove debugging code. Clear cache manually
Modified:
trunk/lib/task/i18nRemoveDuplicatesTask.class.php
Modified: trunk/lib/task/i18nRemoveDuplicatesTask.class.php
==============================================================================
--- trunk/lib/task/i18nRemoveDuplicatesTask.class.php Fri Nov 4 16:29:37
2011 (r10272)
+++ trunk/lib/task/i18nRemoveDuplicatesTask.class.php Fri Nov 4 16:42:01
2011 (r10273)
@@ -36,6 +36,7 @@
$this->addOptions(array(
// http://trac.symfony-project.org/ticket/8352
new sfCommandOption('application', null,
sfCommandOption::PARAMETER_REQUIRED, 'The application name', true),
+ new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED,
'The environment', 'cli'),
));
$this->namespace = 'i18n';
@@ -52,12 +53,6 @@
*/
public function execute($arguments = array(), $options = array())
{
- $config =
sfFactoryConfigHandler::getConfiguration($this->configuration->getConfigPaths('config/factories.yml'));
-
- $params = $config['i18n']['param'];
- var_dump($params);
- die();
-
$this->logSection('i18n', sprintf('Removing duplicate i18n sources for the
"%s" application', $options['application']));
// Loop through plugins
@@ -110,17 +105,7 @@
$fileNode = $xpath->query('//file')->item(0);
$fileNode->setAttribute('date', @date('Y-m-d\TH:i:s\Z'));
- if ($doc->save($filename) > 0)
- {
- /*
- if (!empty($this->cache))
- {
- $this->cache->remove($variant.':'.$this->culture);
- }
-
- return true;
- */
- }
+ $doc->save($filename);
}
}
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" 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/qubit-commits?hl=en.