Skip to content

Commit

Permalink
Fix up a couple of cases where we were using Gallery 3.0.x idioms
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Jun 12, 2013
1 parent 4dcb163 commit 210a1cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions modules/info/classes/Info/Hook/InfoBlock.php
Expand Up @@ -72,10 +72,13 @@ static function get($block_id, $theme) {
);
}
}
if (($theme->item->width && $theme->item->height) && module::get_var("info", "show_dimensions")) {
if (($theme->item->width && $theme->item->height) &&
Module::get_var("info", "show_dimensions")) {
$info["size"] = array(
"label" => t("Dimensions:"),
"value" => t("%width x %height px", array("width" => $theme->item->width, "height" => $theme->item->height))
"value" => t(
"%width x %height px",
array("width" => $theme->item->width, "height" => $theme->item->height))
);
}

Expand Down
1 change: 0 additions & 1 deletion modules/info/classes/Info/Hook/InfoInstaller.php
Expand Up @@ -24,7 +24,6 @@ static function install() {
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);
}

Expand Down

0 comments on commit 210a1cb

Please sign in to comment.