Merge pull request #6089 from garas/2.6-i18n-ExtractTask-function-warnings

Do not warn about i18n functions definitions on extract task
This commit is contained in:
Mark Story 2015-03-17 10:21:26 -04:00
commit c3e1ba1dc9

View file

@ -448,7 +448,7 @@ class ExtractTask extends AppShell {
if ($categoryName !== 'LC_TIME') {
$this->_addTranslation($categoryName, $domain, $singular, $details);
}
} else {
} elseif (!is_array($this->_tokens[$count - 1]) || $this->_tokens[$count - 1][0] != T_FUNCTION) {
$this->_markerError($this->_file, $line, $functionName, $count);
}
}