[dev] [commit] r1076 - phplib
automailer at dexonline.ro
automailer at dexonline.ro
Fri Jan 31 15:19:15 EET 2014
Author: cata
Date: Fri Jan 31 15:19:15 2014
New Revision: 1076
Log:
Make select2 work with lexems containing spaces.
Modified:
phplib/AdminStringUtil.php
Modified: phplib/AdminStringUtil.php
==============================================================================
--- phplib/AdminStringUtil.php Thu Jan 30 15:04:47 2014 (r1075)
+++ phplib/AdminStringUtil.php Fri Jan 31 15:19:15 2014 (r1076)
@@ -27,7 +27,7 @@
static function internalizeWordName($name) {
return self::process($name, array('self::shorthandToUnicode', 'self::removeAccents', 'strip_tags', 'mb_strtolower',
- 'StringUtil::stripHtmlEscapeCodes', 'self::stripWhiteSpace', 'self::stripIllegalCharacters'));
+ 'StringUtil::stripHtmlEscapeCodes', 'self::stripIllegalCharacters'));
}
/**
@@ -493,10 +493,6 @@
return str_replace(self::$ACCENTS['accented'], self::$ACCENTS['explicitAccent'], $s);
}
- private static function stripWhiteSpace($s) {
- return str_replace(' ', '', $s);
- }
-
private static function stripIllegalCharacters($s) {
$result = '';
$len = mb_strlen($s);
More information about the Dev
mailing list