use new-style constructors everywhere

This commit is contained in:
Shish
2014-03-22 09:00:59 +00:00
parent da29912646
commit 7b68d8ebfd
22 changed files with 38 additions and 38 deletions

View File

@@ -88,7 +88,7 @@ class SVGFileHandler extends Extension {
class MiniSVGParser {
var $valid=false, $width=0, $height=0;
function MiniSVGParser($file) {
function __construct($file) {
$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, array($this, "startElement"), array($this, "endElement"));
$this->valid = xml_parse($xml_parser, file_get_contents($file), true);