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

More debug

parent 6da2d0f9
No related branches found
No related tags found
No related merge requests found
...@@ -448,7 +448,7 @@ class Ufixit ...@@ -448,7 +448,7 @@ class Ufixit
* Marks images as decorative * Marks images as decorative
* @param string $error_html - The bad html that needs to be fixed * @param string $error_html - The bad html that needs to be fixed
* *
* @return string $fixed_img - The image with new alt text * @return string $fixed_img - The image with no alt text and data-decorative set to true
*/ */
public function makeImgDecorative($error_html) public function makeImgDecorative($error_html)
{ {
...@@ -458,7 +458,7 @@ class Ufixit ...@@ -458,7 +458,7 @@ class Ufixit
$fixed_img = null; $fixed_img = null;
foreach ($imgs as $img) { foreach ($imgs as $img) {
$img->setAttribute('alt', "emptystring"); $img->setAttribute('alt', "");
$img->setAttribute('data-decorative', 'true'); $img->setAttribute('data-decorative', 'true');
$removed_endpoint = $img->removeAttribute('data-api-endpoint'); $removed_endpoint = $img->removeAttribute('data-api-endpoint');
$removed_endpoint = $img->removeAttribute('data-api-returntype'); $removed_endpoint = $img->removeAttribute('data-api-returntype');
......
...@@ -178,6 +178,7 @@ switch ($main_action) { ...@@ -178,6 +178,7 @@ switch ($main_action) {
case 'pages': case 'pages':
$ufixit->uploadFixedPages($corrected_error, $data['error_html']); $ufixit->uploadFixedPages($corrected_error, $data['error_html']);
error_log('HTML being put in is: '.$corrected_error);
break; break;
case 'syllabus': case 'syllabus':
......
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