Skip to content

Commit

Permalink
Merge pull request #502 from tarasfrompir/patch-7
Browse files Browse the repository at this point in the history
Доработка к предыдущим реквестам
  • Loading branch information
sergejey committed Apr 4, 2019
2 parents 2a55298 + 1a67e69 commit 25db6b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
8 changes: 1 addition & 7 deletions modules/devices/processCommand.inc.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -56,13 +56,7 @@
'graminfo_as_text' => true, 'graminfo_as_text' => true,
); );
$dir = ROOT . 'lib/phpmorphy/dicts'; $dir = ROOT . 'lib/phpmorphy/dicts';
if (SETTINGS_SITE_LANGUAGE == 'ru') { $lang = SETTINGS_SITE_LANGUAGE_CODE;
$lang = 'ru_RU';
} else if (SETTINGS_SITE_LANGUAGE == 'ua') {
$lang = 'uk_UA';
} else {
$lang = 'en_EN';
}
try { try {
$morphy = new phpMorphy($dir, $lang, $opts); $morphy = new phpMorphy($dir, $lang, $opts);
$this->morphy =& $morphy; $this->morphy =& $morphy;
Expand Down
8 changes: 2 additions & 6 deletions modules/patterns/patterns.class.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -717,11 +717,7 @@ function checkPattern($id, $from_user_id = 0)
); );
$dir = ROOT . 'lib/phpmorphy/dicts'; $dir = ROOT . 'lib/phpmorphy/dicts';


if (SETTINGS_SITE_LANGUAGE == 'ru') { $lang = SETTINGS_SITE_LANGUAGE_CODE;
$lang = 'ru_RU';
} else {
$lang = 'en_EN';
}


try { try {
$morphy = new phpMorphy($dir, $lang, $opts); $morphy = new phpMorphy($dir, $lang, $opts);
Expand Down Expand Up @@ -939,4 +935,4 @@ function dbInstall($data)
* TW9kdWxlIGNyZWF0ZWQgRGVjIDEzLCAyMDExIHVzaW5nIFNlcmdlIEouIHdpemFyZCAoQWN0aXZlVW5pdCBJbmMgd3d3LmFjdGl2ZXVuaXQuY29tKQ== * TW9kdWxlIGNyZWF0ZWQgRGVjIDEzLCAyMDExIHVzaW5nIFNlcmdlIEouIHdpemFyZCAoQWN0aXZlVW5pdCBJbmMgd3d3LmFjdGl2ZXVuaXQuY29tKQ==
* *
*/ */
?> ?>

0 comments on commit 25db6b6

Please sign in to comment.