mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing notice error message. Fixes #34
This commit is contained in:
parent
91503f8f8a
commit
7c100f3b75
1 changed files with 11 additions and 11 deletions
|
@ -168,7 +168,7 @@ class ExtractTask extends Shell{
|
|||
} else {
|
||||
$response = '';
|
||||
while ($response == '') {
|
||||
$response = $this->in("What is the full path you would like to output?\nExample: " . $this->path . DS . "locale\n[Q]uit", null, $this->path . DS . "locale");
|
||||
$response = $this->in("What is the full path you would like to output?\nExample: " . $this->path . DS . "locale\n[Q]uit", null, $this->path . DS . 'locale');
|
||||
if (strtoupper($response) === 'Q') {
|
||||
$this->out('Extract Aborted');
|
||||
$this->_stop();
|
||||
|
@ -343,7 +343,7 @@ class ExtractTask extends Shell{
|
|||
$this->__strings[$this->__formatString($singular)][$this->__file][] = $line;
|
||||
}
|
||||
} else {
|
||||
if ($plural) {
|
||||
if (isset($plural)) {
|
||||
$this->__strings[$this->__file][$this->__formatString($singular) . "\0" . $this->__formatString($plural)][] = $line;
|
||||
} else {
|
||||
$this->__strings[$this->__file][$this->__formatString($singular)][] = $line;
|
||||
|
@ -485,7 +485,7 @@ class ExtractTask extends Shell{
|
|||
} elseif (strtoupper($response) === 'N') {
|
||||
$response = '';
|
||||
while ($response == '') {
|
||||
$response = $this->in("What would you like to name this file?\nExample: new_" . $file, null, "new_" . $file);
|
||||
$response = $this->in("What would you like to name this file?\nExample: new_" . $file, null, 'new_' . $file);
|
||||
$file = $response;
|
||||
}
|
||||
}
|
||||
|
@ -636,7 +636,7 @@ class ExtractTask extends Shell{
|
|||
|
||||
foreach ($dirs as $dir) {
|
||||
if (!preg_match("!(^|.+/)(CVS|.svn)$!", $dir)) {
|
||||
$files = array_merge($files, $this->__searchDirectory("$dir" . DS));
|
||||
$files = array_merge($files, $this->__searchDirectory($dir . DS));
|
||||
if (($id = array_search($dir . DS . 'extract.php', $files)) !== FALSE) {
|
||||
unset($files[$id]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue