Author: Jonathan.Wage
Date: 2010-02-17 16:36:23 +0100 (Wed, 17 Feb 2010)
New Revision: 28085

Modified:
   
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalInstallPlugin/lib/task/sfSympalInstallTask.class.php
   
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalSearchPlugin/lib/task/sfSympalBuildSearchIndexTask.class.php
Log:
[1.4][sfSympalPlugin][1.0] Fixing issue with broken tasks


Modified: 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalInstallPlugin/lib/task/sfSympalInstallTask.class.php
===================================================================
--- 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalInstallPlugin/lib/task/sfSympalInstallTask.class.php
       2010-02-17 15:29:00 UTC (rev 28084)
+++ 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalInstallPlugin/lib/task/sfSympalInstallTask.class.php
       2010-02-17 15:36:23 UTC (rev 28085)
@@ -49,6 +49,8 @@
    */
   protected function execute($arguments = array(), $options = array())
   {
+    $databaseManager = new sfDatabaseManager($this->configuration);
+
     $install = new sfSympalInstall($this->configuration, $this->dispatcher, 
$this->formatter);
     $install->setApplication($arguments['application']);
 

Modified: 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalSearchPlugin/lib/task/sfSympalBuildSearchIndexTask.class.php
===================================================================
--- 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalSearchPlugin/lib/task/sfSympalBuildSearchIndexTask.class.php
       2010-02-17 15:29:00 UTC (rev 28084)
+++ 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalSearchPlugin/lib/task/sfSympalBuildSearchIndexTask.class.php
       2010-02-17 15:36:23 UTC (rev 28085)
@@ -35,6 +35,8 @@
    */
   protected function execute($arguments = array(), $options = array())
   {
+    $databaseManager = new sfDatabaseManager($this->configuration);
+
     if ($this->configuration instanceof sfApplicationConfiguration && 
!$options['all'])
     {
       $this->sites = Doctrine_Core::getTable('sfSympalSite')
@@ -49,11 +51,6 @@
 
     foreach ($this->sites as $site)
     {
-      if (!$this->configuration instanceof sfApplicationConfiguration || 
$options['all'])
-      {
-        $this->configuration = $this->createConfiguration($site->slug, 
$options['env']);
-      }
-
       $this->logSection('sympal', sprintf('Indexing models for site "%s"', 
sfConfig::get('sf_app')));
       $search = sfSympalSearch::getInstance();
       $models = sfSympalConfig::getSearchableModels();

-- 
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.

Reply via email to