thumb = $thumb; $this->gallerytext = $gallerytext; $this->rdfaType = $rdfaType; $this->dsr = $dsr; $this->hasError = DOMUtils::hasTypeOf( $thumb, 'mw:Error' ); } }