]> git.wh0rd.org Git - tt-rss.git/commitdiff
htmlpurifier: suppress HTML.Allowed deprecation warning
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 12 Apr 2011 15:35:13 +0000 (19:35 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 12 Apr 2011 15:35:13 +0000 (19:35 +0400)
functions.php

index 141d7bc8c71e266768e987c18bb20401d3d38e5d..bccb99d2a718b29337b854be44dac11651d5ea40 100644 (file)
        $allowed = "p,a[href],i,em,b,strong,code,pre,blockquote,br,img[src|alt|title],ul,ol,li,h1,h2,h3,h4,s,object[classid|type|id|name|width|height|codebase],param[name|value]";
 
        $config->set('HTML.SafeObject', true);
-       $config->set('HTML', 'Allowed', $allowed);
+       @$config->set('HTML', 'Allowed', $allowed);
        $config->set('Output.FlashCompat', true);
        $config->set('Attr.EnableID', true);