foto: replace deprecated <strike> element by <s>
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 3 Dec 2020 19:26:59 +0000 (20:26 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 5 Dec 2020 00:41:21 +0000 (01:41 +0100)
Identical results conforming to the HTML5 standard.

Obsolete HTML 3 spelling is not recognised by ckeditor
so cannot be used in static html.

foto/index.php
widget/reply.php

index 0ce4d206aa2a4c72b2336fc8a2b7e3fae665c71d..850d82a722d49b55b429089aebb6bd02739d3cdf 100644 (file)
@@ -67,7 +67,7 @@ if ($imgs = glob("$rootdir/*", GLOB_ONLYDIR)) {
                $html = '<img src="/'.$cover.'" />';
                $html .= "<figcaption>$album</figcaption>";
                if (!$User->login and file_exists("$path/.private")) {
-                       $html = '<strike title="bewoners">'.$html.'</strike>';
+                       $html = '<s title="bewoners">'.$html.'</s>';
                }
                $html = "<figure>$html</figure>";
 
index edffaa75ceb3b6bc9de79f34d79af2b4d94bff72..3984349d82c646a6928fbd6d56efc03984e06569 100644 (file)
@@ -90,7 +90,7 @@ while ($row = $query->fetch()) {
                                printf("<em>%s</em> %s",
                                        $journalcol[$change->col], sprintf(
                                                !isset($change->old_value) ? 'gewijzigd naar <q>%2$s</q>' :
-                                               (!isset($change->value) ? 'verwijderd (<strike>%s</strike>)' :
+                                               (!isset($change->value) ? 'verwijderd (<s>%s</s>)' :
                                                'gewijzigd van <q>%s</q> naar <q>%s</q>'),
                                                $change->old_value, $change->value
                                        )