Plugin Directory

Changeset 1151569


Ignore:
Timestamp:
05/02/2015 04:19:07 AM (11 years ago)
Author:
miknight
Message:

Fixed compatibility with PHP 5.4+.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • unit-converter/trunk/unit-converter.php

    r184655 r1151569  
    317317            $this->maps[$alias] = $unit;
    318318            // In order to detect the mapping in HTML, it may be necessary to check the HTML entity version of the unit.
    319             $alias_html = htmlentities(utf8_decode($alias));
     319            $alias_html = htmlentities($alias, UTF-8);
    320320            if ($alias_html != $alias) {
    321321                $this->maps[$alias_html] = $unit;
Note: See TracChangeset for help on using the changeset viewer.