Skip to content
Snippets Groups Projects
Commit bf2206d1 authored by Thomas Whitaker's avatar Thomas Whitaker
Browse files

Removed unneeded code"

parent 2b14da7c
No related branches found
No related tags found
No related merge requests found
......@@ -471,18 +471,6 @@ class Ufixit
return $fixed_img;
}
$this->dom->loadHTML("<?xml encoding=\"utf-8\" ?>{$error_html}");
$imgs = $this->dom->getElementsByTagName('img');
$fixed_img = null;
foreach ($imgs as $img) {
$img->setAttribute('alt', $new_content);
$removed_endpoint = $img->removeAttribute('data-api-endpoint');
$removed_endpoint = $img->removeAttribute('data-api-returntype');
$fixed_img = $this->dom->saveHTML($img);
}
/**
* Renames an element and preserves its attributes
* @param object $node - The DOMElement object you wish to rename
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment