1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

Fix Actions links in text mode

- Display them as text buttons
- Show the description
- Use css classes
Ref: 3255e4ad7b

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes
2020-03-08 15:42:30 +01:00
parent abe0ae75f6
commit 749d284f3e

View File

@@ -32,8 +32,8 @@ class Text implements ActionLinksModesInterface
if (empty($value)) {
$value = $text;
}
return ' <input class="btn btn-link" type="submit" name="' . $name . '"'
return ' <button class="btn btn-link ' . $class . '" type="submit" name="' . $name . '"'
. ' value="' . htmlspecialchars($value) . '"'
. ' title="' . htmlspecialchars($text) . '">' . "\n";
. ' title="' . htmlspecialchars($text) . '">' . htmlspecialchars($text) . '</button>' . "\n";
}
}