X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=php5-swig%2Fxml-template.swig;fp=php5-swig%2Fxml-template.swig;h=d70e223fec9d1355d7727247876bedf630105374;hb=c106bd8b8b015aa433ff94a1c6ef63d82dfb4440;hp=517595168d99f6e129cd09560502e98b1a08d05a;hpb=37f811afb43c0b02acd519c530adb404c145d67d;p=xml-template diff --git a/php5-swig/xml-template.swig b/php5-swig/xml-template.swig index 5175951..d70e223 100644 --- a/php5-swig/xml-template.swig +++ b/php5-swig/xml-template.swig @@ -76,7 +76,7 @@ Directive* convert_php_objects_to_directive(zval *obj) if (SWIG_ConvertPtr(obj, (void **)&doc, SWIGTYPE_p_XmlDocPtrWrapper, 0) < 0 || doc == NULL) { return NULL; } - return new ReplaceInclude(xmlCopyDoc(doc->get()->ptr, 1)); + return new ReplaceInclude(xmlCopyDoc((*doc)->ptr, 1)); } case IS_NULL: return NULL;