Development

Changeset 7682

You must first sign up to be able to contribute.

Changeset 7682

Show
Ignore:
Timestamp:
02/29/08 10:56:20 (8 months ago)
Author:
fabien
Message:

moved configuration init for tasks

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/task/sfBaseTask.class.php

    r7614 r7682  
    3131    $this->checkProjectExists(); 
    3232 
    33     $this->configuration = new sfProjectConfiguration(getcwd()); 
    34  
    3533    $application = $commandManager->getArgumentSet()->hasArgument('application') ? $commandManager->getArgumentValue('application') : null; 
    3634    if (!is_null($application)) 
     
    4038      require_once sfConfig::get('sf_lib_dir').'/'.$class.'.class.php'; 
    4139      $this->configuration = new $class('test', true); 
     40    } 
     41    else 
     42    { 
     43      $this->configuration = new sfProjectConfiguration(getcwd()); 
    4244    } 
    4345