# HG changeset patch # User edogawaconan # Date 1413908254 -32400 # Node ID 3dbddf76760ae8801271757072eb43a492e36239 # Parent c2a468e9f3ac082439f7c507579c7ac316a2a310 Add filename as title. diff -r c2a468e9f3ac -r 3dbddf76760a index.php --- a/index.php Wed Oct 22 01:12:55 2014 +0900 +++ b/index.php Wed Oct 22 01:17:34 2014 +0900 @@ -45,7 +45,7 @@ function link_to($target, $title) { $lightbox = ""; if (substr($target, -1) !== "/" && preg_match("/(jpe?g|gif|png|webp)$/i", pathinfo($target, PATHINFO_EXTENSION)) === 1) { - $lightbox = ' data-lightbox="aa" '; + $lightbox = ' data-lightbox="aa" data-title="' . $target . '" '; } return('" . h($title) . "");