From f5a27f884c9f3567284c68ce3346b3f828208c83 Mon Sep 17 00:00:00 2001 From: wosminog Date: Fri, 6 Oct 2023 12:34:40 +0300 Subject: [PATCH] Update NCLNameCaseCore.php fix correct className (__CLASS__) instead of NCLNameCaseRu --- Library/NCL/NCLNameCaseCore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/NCL/NCLNameCaseCore.php b/Library/NCL/NCLNameCaseCore.php index 43af4f3..bfa09ec 100644 --- a/Library/NCL/NCLNameCaseCore.php +++ b/Library/NCL/NCLNameCaseCore.php @@ -646,7 +646,7 @@ private function WordCase(NCLNameCaseWord $word) $exclusion=array('тулуз');//исключения $cur_word_=mb_strtolower($cur_word); if ( !in_array($cur_word_, $exclusion ) ){ - $o_nc = new NCLNameCaseRu(); + $o_nc = new (__CLASS__)(); $o_nc->detectNamePart( $o_ncw ); $is_norm_rules=( $o_ncw->getNamePart()=='S' ); }