Skip to content
Permalink
Browse files

Clearing variables after running all the methods. Fixes #333.

  • Loading branch information...
renan committed Feb 12, 2010
1 parent d975dc3 commit f6f04b6425a22f1921ab283b87967bef9d205cd2
Showing with 6 additions and 4 deletions.
  1. +6 −4 cake/console/libs/tasks/extract.php
@@ -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));
}
/**
@@ -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));
}
/**

0 comments on commit f6f04b6

Please sign in to comment.
You can’t perform that action at this time.