GetDKAN / dkan2

Deprecated: please use the 2.x branch of the dkan repo
https://github.com/GetDKAN/dkan
GNU General Public License v2.0
18 stars 16 forks source link

Pass right variable to HTML5:parse(). #392

Closed dharizza closed 4 years ago

dharizza commented 4 years ago

Running dktl drush dkan-metadata-form:sync produced the following error:

 [error]  TypeError: Argument 1 passed to Masterminds\HTML5::parse() must be an instance of Masterminds\HTML5\Parser\InputStream, string given, called in /var/www/docroot/modules/contrib/dkan2/modules/dkan_metadata_form/src/Drush.php on line 159 in Masterminds\HTML5->parse() (line 166 of /var/www/vendor/masterminds/html5/src/HTML5.php) #0 /var/www/docroot/modules/contrib/dkan2/modules/dkan_metadata_form/src/Drush.php(159): Masterminds\HTML5->parse('<!doctype html>...')

I'm fixing that here.