Skip to content

Commit ba99bec

Browse files
committed
fix local directory loading
git-svn-id: http://svn.php.net/repository/pear/packages/Text_LanguageDetect/trunk@322326 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent d782eba commit ba99bec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Text/LanguageDetect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function _get_data_loc($fname)
215215
} else {
216216
// assume this was just unpacked somewhere
217217
// try the local working directory if otherwise
218-
return '../data/' . $fname;
218+
return __DIR__ . '/../data/' . $fname;
219219
}
220220
}
221221

0 commit comments

Comments
 (0)