Skip to content
Permalink
Browse files

Merge pull request #502 from tarasfrompir/patch-7

Доработка к предыдущим реквестам
  • Loading branch information...
sergejey committed Apr 4, 2019
2 parents 2a55298 + 1a67e69 commit 25db6b684b4f9b86c559974b7b07c62e76464758
Showing with 3 additions and 13 deletions.
  1. +1 −7 modules/devices/processCommand.inc.php
  2. +2 −6 modules/patterns/patterns.class.php
@@ -56,13 +56,7 @@
'graminfo_as_text' => true,
);
$dir = ROOT . 'lib/phpmorphy/dicts';
if (SETTINGS_SITE_LANGUAGE == 'ru') {
$lang = 'ru_RU';
} else if (SETTINGS_SITE_LANGUAGE == 'ua') {
$lang = 'uk_UA';
} else {
$lang = 'en_EN';
}
$lang = SETTINGS_SITE_LANGUAGE_CODE;
try {
$morphy = new phpMorphy($dir, $lang, $opts);
$this->morphy =& $morphy;
@@ -717,11 +717,7 @@ function checkPattern($id, $from_user_id = 0)
);
$dir = ROOT . 'lib/phpmorphy/dicts';
if (SETTINGS_SITE_LANGUAGE == 'ru') {
$lang = 'ru_RU';
} else {
$lang = 'en_EN';
}
$lang = SETTINGS_SITE_LANGUAGE_CODE;
try {
$morphy = new phpMorphy($dir, $lang, $opts);
@@ -939,4 +935,4 @@ function dbInstall($data)
* TW9kdWxlIGNyZWF0ZWQgRGVjIDEzLCAyMDExIHVzaW5nIFNlcmdlIEouIHdpemFyZCAoQWN0aXZlVW5pdCBJbmMgd3d3LmFjdGl2ZXVuaXQuY29tKQ==
*
*/
?>
?>

0 comments on commit 25db6b6

Please sign in to comment.
You can’t perform that action at this time.