From 2d2503680ec3cd90d07a871a71a8e6d2f21c6c3d Mon Sep 17 00:00:00 2001 From: jamaa Date: Thu, 13 Jun 2013 00:00:13 +0200 Subject: change "size" to "dimensions" and display unit "px" --- modules/info/helpers/info_block.php | 6 +++--- modules/info/helpers/info_installer.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/info/helpers/info_block.php b/modules/info/helpers/info_block.php index f3c8cf65..238b18b5 100644 --- a/modules/info/helpers/info_block.php +++ b/modules/info/helpers/info_block.php @@ -72,10 +72,10 @@ class info_block_Core { ); } } - if (($theme->item->width && $theme->item->height) && module::get_var("info", "show_size")) { + if (($theme->item->width && $theme->item->height) && module::get_var("info", "show_dimensions")) { $info["size"] = array( - "label" => t("Size:"), - "value" => t("%width x %height", array("width" => $theme->item->width, "height" => $theme->item->height)) + "label" => t("Dimensions:"), + "value" => t("%width x %height px", array("width" => $theme->item->width, "height" => $theme->item->height)) ); } diff --git a/modules/info/helpers/info_installer.php b/modules/info/helpers/info_installer.php index 2d13eec5..2d06a0ef 100644 --- a/modules/info/helpers/info_installer.php +++ b/modules/info/helpers/info_installer.php @@ -25,7 +25,7 @@ class info_installer { module::set_var("info", "show_owner", 1); module::set_var("info", "show_name", 1); module::set_var("info", "show_captured", 1); - module::set_var("info", "show_size", 1); + module::set_var("info", "show_dimensions", 1); } static function upgrade($version) { @@ -38,7 +38,7 @@ class info_installer { module::set_version("info", $version = 2); } if ($version == 2) { - module::set_var("info", "show_size", 1); + module::set_var("info", "show_dimensions", 1); module::set_version("info", $version = 3); } } -- cgit v1.2.3