From dde5d4c9b527283984462a2e1f95c3430e45454a Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 13 Mar 2012 06:33:21 +0000 Subject: [PATCH] html5 validation --- contrib/qr_code/theme.php | 2 +- core/imageboard.pack.php | 1 + ext/handle_pixel/theme.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/qr_code/theme.php b/contrib/qr_code/theme.php index 92e2a01f..8f6103de 100644 --- a/contrib/qr_code/theme.php +++ b/contrib/qr_code/theme.php @@ -3,7 +3,7 @@ class QRImageTheme extends Themelet { public function links_block($link) { global $page; $page->add_block( new Block( - "QR Code","","left",50)); + "QR Code","QR Code","left",50)); } } ?> diff --git a/core/imageboard.pack.php b/core/imageboard.pack.php index ea5815c9..a465eadf 100644 --- a/core/imageboard.pack.php +++ b/core/imageboard.pack.php @@ -563,6 +563,7 @@ class Image { $tmpl = str_replace('$filesize', to_shorthand_int($this->filesize), $tmpl); $tmpl = str_replace('$filename', $_escape($base_fname), $tmpl); $tmpl = str_replace('$title', $_escape($config->get_string("title")), $tmpl); + $tmpl = str_replace(' ', '%20', $tmpl); // nothing seems to use this, sending the event out to 50 exts is a lot of overhead if(!SPEED_HAX) { diff --git a/ext/handle_pixel/theme.php b/ext/handle_pixel/theme.php index 84957ac3..565375cb 100644 --- a/ext/handle_pixel/theme.php +++ b/ext/handle_pixel/theme.php @@ -5,7 +5,7 @@ class PixelFileHandlerTheme extends Themelet { global $config; $u_ilink = $image->get_image_link(); - $html = ""; + $html = "main image"; if($config->get_bool("image_show_meta")) { # FIXME: only read from jpegs? $exif = @exif_read_data($image->get_image_filename(), 0, true);