Skip to content

Commit a3bc3df

Browse files
author
Nicholas Pisarro
committed
now reports unicode db loading errors to user
git-svn-id: http://svn.php.net/repository/pear/packages/Text_LanguageDetect/trunk@209114 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent d7e6e8b commit a3bc3df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Text/LanguageDetect/Parser.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,9 @@ function analyze()
224224

225225
if (PEAR::isError($blocks)) {
226226
$this->_compile_unicode = false;
227-
// todo: need reporting to the user
227+
228+
// will be returned to the user when getUnicodeBlocks() is called
229+
$this->_unicode_blocks = $blocks;
228230

229231
} else {
230232
$block_count = count($blocks);

0 commit comments

Comments
 (0)