]> source.dussan.org Git - nextcloud-server.git/commitdiff
adding title when fancybox is displayed
authorBartek Przybylski <bart.p.pl@gmail.com>
Wed, 6 Jun 2012 21:29:23 +0000 (23:29 +0200)
committerBartek Przybylski <bart.p.pl@gmail.com>
Sun, 10 Jun 2012 11:16:19 +0000 (13:16 +0200)
apps/gallery/lib/tiles.php

index 6f8b8aa7fe719233e6a1ecb4cbf287792d3f5a65..ff9519142ac8a058623636850e181e9d7256c451 100644 (file)
@@ -95,7 +95,7 @@ class TileSingle extends TileBase {
        public function get($extra = '') {
                //      !HACK! file path needs to be encoded twice because files app decode twice url, so any special chars like + or & in filename
                //      !HACK! will result in failing of opening them 
-    return '<a rel="images" href="'.\OCP\Util::linkTo('files', 'download.php').'?file='.urlencode(urlencode($this->getPath())).'"><img rel="images" src="'.\OCP\Util::linkTo('gallery', 'ajax/thumbnail.php').'&filepath='.urlencode($this->getPath()).'" '.$extra.'></a>';
+               return '<a rel="images" title="'.basename($this->getPath()).'" href="'.\OCP\Util::linkTo('files', 'download.php').'?file='.urlencode(urlencode($this->getPath())).'"><img rel="images" src="'.\OCP\Util::linkTo('gallery', 'ajax/thumbnail.php').'&filepath='.urlencode($this->getPath()).'" '.$extra.'></a>';
        }
        
        public function getMiniatureSrc() {