r64878 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64877‎ | r64878 | r64879 >
Date:13:54, 10 April 2010
Author:daniel
Status:deferred
Tags:
Comment:
image meta-data, tags, etc
Modified paths:
  • /trunk/WikiWord/WikiWord/src/main/php/search/wikipics.php (modified) (history)

Diff [purge]

Index: trunk/WikiWord/WikiWord/src/main/php/search/wikipics.php
@@ -147,7 +147,7 @@
148148 $info[] = htmlspecialchars("{$img_width}x{$img_height}");
149149 }
150150
151 - if ( $img_size > 1024*1024 ) $info[] = htmlspecialchars(sprintf("%1.0fM", $img_size / 1024.0*1024.0));
 151+ if ( $img_size > 1024*1024 ) $info[] = htmlspecialchars(sprintf("%1.0fM", $img_size / (1024.0*1024.0)));
152152 else if ( $img_size > 1024 ) $info[] = htmlspecialchars(sprintf("%1.0fK", $img_size / 1024.0));
153153 else $info[] = htmlspecialchars(sprintf("%dB", $img_size));
154154

Status & tagging log