ESTRICT double constructor (wrong order of them)

This commit is contained in:
Grischa Brockhaus 2012-06-22 19:16:58 +02:00 committed by Ian
parent 7be050e1e2
commit 7d8fdc7db6

View File

@ -51,11 +51,6 @@ class ONYX_RSS
* private $type;
*/
function ONYX_RSS($charset = 'UTF-8')
{
$this->__construct($charset);
}
// Forward compatibility with PHP v.5
// http://www.phpvolcano.com/eide/php5.php?page=start
function __construct($charset = 'UTF-8')
@ -89,6 +84,11 @@ class ONYX_RSS
xml_set_character_data_handler($this->parser, 'cdata');
}
function ONYX_RSS($charset = 'UTF-8')
{
$this->__construct($charset);
}
function parse($uri, $file=false, $time=false, $local=false)
{
$this->rss = array();