Skip to content

Commit

Permalink
Add ufixit to imgAltIsTooLong issue #114
Browse files Browse the repository at this point in the history
  • Loading branch information
Fenel Joseph committed Mar 22, 2016
1 parent d571862 commit af4cb3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/parseResults.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function isYouTubeVideo($link_url, $regex)
</div>
<?php endif; ?>
<?php endif; ?>
<?php if ($item->type == "cssTextHasContrast" || $item->type == "imgHasAlt" || $item->type == "imgNonDecorativeHasAlt" || $item->type == "tableDataShouldHaveTh" || $item->type == "tableThShouldHaveScope" || $item->type === "headersHaveText" || $item->type == "aMustContainText" || $item->type == "imgAltIsDifferent"): ?>
<?php if ($item->type == "cssTextHasContrast" || $item->type == "imgHasAlt" || $item->type == "imgNonDecorativeHasAlt" || $item->type == "tableDataShouldHaveTh" || $item->type == "tableThShouldHaveScope" || $item->type === "headersHaveText" || $item->type == "aMustContainText" || $item->type == "imgAltIsDifferent" || $item->type == "imgAltIsTooLong"): ?>
<p class="fix-success hidden"><?= $instance; ?>. <span class="label label-success margin-left-small" style="margin-top: -2px;">Done!</span></p>
<?php endif; ?>

Expand All @@ -174,7 +174,7 @@ function isYouTubeVideo($link_url, $regex)
<?php endif; ?>

<?php if (empty($_POST['path'])): ?>
<?php if ($item->type === "cssTextHasContrast" || $item->type === "imgHasAlt" || $item->type === "imgNonDecorativeHasAlt" || $item->type === "tableDataShouldHaveTh" || $item->type === "tableThShouldHaveScope" || $item->type === "headersHaveText" || $item->type == "aMustContainText" || $item->type == "imgAltIsDifferent"): ?>
<?php if ($item->type === "cssTextHasContrast" || $item->type === "imgHasAlt" || $item->type === "imgNonDecorativeHasAlt" || $item->type === "tableDataShouldHaveTh" || $item->type === "tableThShouldHaveScope" || $item->type === "headersHaveText" || $item->type == "aMustContainText" || $item->type == "imgAltIsDifferent" || $item->type == "imgAltIsTooLong"): ?>
<button class="fix-this no-print btn btn-success instance" value="<?= $item->type ?>">U FIX IT!</button>
<div class="toolmessage instance">UFIXIT is disabled because this is an old report. Rescan the course to use UFIXIT.</div>
<form class="ufixit-form form-horizontal no-print hidden instance" action="lib/process.php" method="post" role="form">
Expand Down
1 change: 1 addition & 0 deletions public/process.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
case 'imgHasAlt':
case 'imgNonDecorativeHasAlt':
case 'imgAltIsDifferent':
case 'imgAltIsTooLong':
//$data['error_html'] = str_replace('alt=""', 'alt', $data['error_html']);
$corrected_error = $ufixit->fixAltText($data['error_html'], $data['new_content'], $submitting_again);

Expand Down

0 comments on commit af4cb3f

Please sign in to comment.