Skip to content

Commit

Permalink
Clearing variables after running all the methods. Fixes #333.
Browse files Browse the repository at this point in the history
  • Loading branch information
renan committed Feb 12, 2010
1 parent d975dc3 commit f6f04b6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cake/console/libs/tasks/extract.php
Expand Up @@ -174,6 +174,12 @@ function __extract() {
$this->out(__('Output Directory: ', true) . $this->__output);
$this->hr();
$this->__extractTokens();
$this->__buildFiles();
$this->__writeFiles();
$this->__paths = $this->__files = $this->__storage = array();
$this->__strings = $this->__tokens = array();
$this->out();
$this->out(__('Done.', true));
}

/**
Expand Down Expand Up @@ -244,10 +250,6 @@ function __extractTokens() {
$this->__parse('__dn', array('domain', 'singular', 'plural'));
$this->__parse('__dcn', array('domain', 'singular', 'plural'));
}
$this->__buildFiles();
$this->__writeFiles();
$this->out();
$this->out(__('Done.', true));
}

/**
Expand Down

0 comments on commit f6f04b6

Please sign in to comment.