Jacek Kowalski
2016-02-15 eac90243793cf8ba3da2117ac2d76efbcec24e53
Usprawnienia wczytywania UTF-8 w module kino
2 files modified
4 ■■■■ changed files
class/std.php 1 ●●●● patch | view | raw | blame | history
modules/70_kino/handler.php 3 ●●●● patch | view | raw | blame | history
class/std.php
@@ -39,3 +39,4 @@
libxml_use_internal_errors();
libxml_disable_entity_loader(true);
spl_autoload_register('botAutoload');
ini_set('default_charset', 'utf-8');
modules/70_kino/handler.php
@@ -7,7 +7,7 @@
        libxml_use_internal_errors(TRUE);
        
        $dom = new DOMDocument();
        if(!$dom->loadHTML($dane)) {
        if(!$dom->loadHTML('<?xml encoding="utf-8" ?>' . $dane)) {
            libxml_use_internal_errors(FALSE);
            $down->cacheFor(1800);
            return FALSE;
@@ -287,4 +287,3 @@
        return new BotMsg($txt);
    }
}
?>