diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-07-05 11:45:51 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-07-05 11:45:51 +0000 |
commit | e93f8be8716fd35a9ad6fc3453548a8c9e5d32e8 (patch) | |
tree | 4617ae5665c77c07c54b1dfbc9722de0727adef5 /includes/unicode.inc | |
parent | 59aa2ae8e8a7e29e0029941b28bce5b7ba31ae94 (diff) | |
download | brdo-e93f8be8716fd35a9ad6fc3453548a8c9e5d32e8.tar.gz brdo-e93f8be8716fd35a9ad6fc3453548a8c9e5d32e8.tar.bz2 |
- Patch #72204 by nedjo: upper-cased all TRUE/FALSE/NULL constants.
Diffstat (limited to 'includes/unicode.inc')
-rw-r--r-- | includes/unicode.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/unicode.inc b/includes/unicode.inc index 6714437b2..26b9c212e 100644 --- a/includes/unicode.inc +++ b/includes/unicode.inc @@ -23,7 +23,7 @@ function unicode_check() { * @param $errors * Whether to report any fatal errors with form_set_error(). */ -function _unicode_check($errors = false) { +function _unicode_check($errors = FALSE) { // Set the standard C locale to ensure consistent, ASCII-only string handling. setlocale(LC_CTYPE, 'C'); @@ -77,7 +77,7 @@ function _unicode_check($errors = false) { * Return the required Unicode status and errors for admin/settings. */ function unicode_settings() { - $status = _unicode_check(true); + $status = _unicode_check(TRUE); $options = array(UNICODE_SINGLEBYTE => t('Standard PHP: operations on Unicode strings are emulated on a best-effort basis. Install the <a href="%url">PHP mbstring extension</a> for improved Unicode support.', array('%url' => 'http://www.php.net/mbstring')), UNICODE_MULTIBYTE => t('Multi-byte: operations on Unicode strings are supported through the <a href="%url">PHP mbstring extension</a>.', array('%url' => 'http://www.php.net/mbstring')), UNICODE_ERROR => t('Invalid: the current configuration is incompatible with Drupal.')); @@ -106,11 +106,11 @@ function unicode_settings() { function drupal_xml_parser_create(&$data) { // Default XML encoding is UTF-8 $encoding = 'utf-8'; - $bom = false; + $bom = FALSE; // Check for UTF-8 byte order mark (PHP5's XML parser doesn't handle it). if (!strncmp($data, "\xEF\xBB\xBF", 3)) { - $bom = true; + $bom = TRUE; $data = substr($data, 3); } @@ -123,7 +123,7 @@ function drupal_xml_parser_create(&$data) { $php_supported = array('utf-8', 'iso-8859-1', 'us-ascii'); if (!in_array(strtolower($encoding), $php_supported)) { $out = drupal_convert_to_utf8($data, $encoding); - if ($out !== false) { + if ($out !== FALSE) { $encoding = 'utf-8'; $data = ereg_replace('^(<\?xml[^>]+encoding)="([^"]+)"', '\\1="utf-8"', $out); } |