[dokuwiki] Re: better way to show file version?

  • From: "Getz, Robin" <robin.getz@xxxxxxxxxx>
  • To: <dokuwiki@xxxxxxxxxxxxx>
  • Date: Thu, 13 Dec 2012 14:13:06 -0500

On Wed 28 Nov 2012 12:14, Getz, Robin pondered:
> So, something like:

Was there an objection to this? It hasn't made it into 
https://github.com/splitbrain/dokuwiki/blob/master/inc/parser/xhtml.php#L802
yet...

> diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
> index 01e9c46..c7d9c64 100644
> --- a/inc/parser/xhtml.php
> +++ b/inc/parser/xhtml.php
> @@ -802,6 +802,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
>              $class = preg_replace('/[^_\-a-z0-9]+/i','_',$ext);
>              $link['class'] .= ' mediafile mf_'.$class;
>              $link['url'] = ml($src,array('id'=>$ID,'cache'=>$cache),true);
> +            $link['title'] .= ' (' . 
> filesize_h(filesize(mediaFN($src))).')'; }
>
>          if($hash) $link['url'] .= '#'.$hash;

-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: