Skip to content
This repository
Browse code

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

  • Loading branch information...
commit f6f04b6425a22f1921ab283b87967bef9d205cd2 1 parent d975dc3
Renan Gonçalves authored

Showing 1 changed file with 6 additions and 4 deletions. Show diff stats Hide diff stats

  1. 10  cake/console/libs/tasks/extract.php
10  cake/console/libs/tasks/extract.php
@@ -174,6 +174,12 @@ function __extract() {
174 174
 		$this->out(__('Output Directory: ', true) . $this->__output);
175 175
 		$this->hr();
176 176
 		$this->__extractTokens();
  177
+		$this->__buildFiles();
  178
+		$this->__writeFiles();
  179
+		$this->__paths = $this->__files = $this->__storage = array();
  180
+		$this->__strings = $this->__tokens = array();
  181
+		$this->out();
  182
+		$this->out(__('Done.', true));
177 183
 	}
178 184
 
179 185
 /**
@@ -244,10 +250,6 @@ function __extractTokens() {
244 250
 			$this->__parse('__dn', array('domain', 'singular', 'plural'));
245 251
 			$this->__parse('__dcn', array('domain', 'singular', 'plural'));
246 252
 		}
247  
-		$this->__buildFiles();
248  
-		$this->__writeFiles();
249  
-		$this->out();
250  
-		$this->out(__('Done.', true));
251 253
 	}
252 254
 
253 255
 /**

0 notes on commit f6f04b6

Please sign in to comment.
Something went wrong with that request. Please try again.