mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix double / issue in ExtractTask
Also fix an issue where extracting pot files for plugins ended up creating a Localedefault.pot file incorrectly. Fixes #2284
This commit is contained in:
parent
07462f0bef
commit
4103fe14a2
1 changed files with 2 additions and 1 deletions
|
@ -162,7 +162,7 @@ class ExtractTask extends Shell {
|
||||||
} else {
|
} else {
|
||||||
$message = __d('cake_console', "What is the path you would like to output?\n[Q]uit", $this->_paths[0] . DS . 'Locale');
|
$message = __d('cake_console', "What is the path you would like to output?\n[Q]uit", $this->_paths[0] . DS . 'Locale');
|
||||||
while (true) {
|
while (true) {
|
||||||
$response = $this->in($message, null, $this->_paths[0] . DS . 'Locale');
|
$response = $this->in($message, null, rtrim($this->_paths[0], DS) . DS . 'Locale');
|
||||||
if (strtoupper($response) === 'Q') {
|
if (strtoupper($response) === 'Q') {
|
||||||
$this->out(__d('cake_console', 'Extract Aborted'));
|
$this->out(__d('cake_console', 'Extract Aborted'));
|
||||||
$this->_stop();
|
$this->_stop();
|
||||||
|
@ -187,6 +187,7 @@ class ExtractTask extends Shell {
|
||||||
if (empty($this->_files)) {
|
if (empty($this->_files)) {
|
||||||
$this->_searchFiles();
|
$this->_searchFiles();
|
||||||
}
|
}
|
||||||
|
$this->_output = rtrim($this->_output, DS) . DS;
|
||||||
$this->_extract();
|
$this->_extract();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue