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

More debug

parent bf2206d1
No related branches found
No related tags found
No related merge requests found
......@@ -459,7 +459,7 @@ class Ufixit
foreach ($imgs as $img) {
error_log('___break___|');
$img->setAttribute('alt', "test");
$img->setAttribute('alt', 'test');
$img->setAttribute('data-decorative', 'true');
$removed_endpoint = $img->removeAttribute('data-api-endpoint');
$removed_endpoint = $img->removeAttribute('data-api-returntype');
......
......@@ -142,6 +142,7 @@ switch ($main_action) {
if(filter_input(INPUT_POST, 'makedeco', FILTER_SANITIZE_STRING) == 'true') {
$corrected_error = $ufixit->makeImgDecorative($data['error_html']);
} else {
error_log('not detected');
$new_content = filter_input(INPUT_POST, 'newcontent', FILTER_SANITIZE_STRING);
$corrected_error = $ufixit->fixAltText($data['error_html'], $new_content);
}
......
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