Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit f6f04b6425a22f1921ab283b87967bef9d205cd2 1 parent d975dc3
@renan renan authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 cake/console/libs/tasks/extract.php
View
10 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));
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.