MtDu has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/330899 )

Change subject: Migrate away from UtfNormal in core to external UtfNormal 
library
......................................................................

Migrate away from UtfNormal in core to external UtfNormal library

In MediaWiki version 1.25, the UtfNormal library was split into a separate 
wikimedia/utfnormal package.
This patch changes the code to reflect this change.

Bug: T153994
Change-Id: Idb3de58664c5c9e439da0e76c715496f2539e39d
---
M ffs/SimpleFFS.php
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/99/330899/1

diff --git a/ffs/SimpleFFS.php b/ffs/SimpleFFS.php
index fefef3e..230524f 100644
--- a/ffs/SimpleFFS.php
+++ b/ffs/SimpleFFS.php
@@ -12,6 +12,9 @@
  * Other FFS classes can extend SimpleFFS and override suitable methods.
  * @ingroup FFS
  */
+
+use UtfNormal\Validator;
+
 class SimpleFFS implements FFS {
        public function supportsFuzzy() {
                return 'no';
@@ -117,7 +120,7 @@
                        throw new MWException( "Contents of $filename are not 
valid utf-8." );
                }
 
-               $input = UtfNormal::cleanUp( $input );
+               $input = Validator::cleanUp( $input );
 
                try {
                        return $this->readFromVariable( $input );

-- 
To view, visit https://gerrit.wikimedia.org/r/330899
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idb3de58664c5c9e439da0e76c715496f2539e39d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: MtDu <justin.d...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to