summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorjamaa <jamaa@mzibo.net>2013-06-13 00:00:13 +0200
committerBharat Mediratta <bharat@menalto.com>2013-06-12 19:10:02 -0400
commit2d2503680ec3cd90d07a871a71a8e6d2f21c6c3d (patch)
tree24b66cab056bc0c7aa5893ab0df895cd5a05eeae /modules
parent8b14cc5a78ca7cd86ead250916f3437af7bf77af (diff)
change "size" to "dimensions" and display unit "px"
Diffstat (limited to 'modules')
-rw-r--r--modules/info/helpers/info_block.php6
-rw-r--r--modules/info/helpers/info_installer.php4
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);
}
}