diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-06 03:47:36 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-06 03:47:36 +0000 |
commit | 80d4df3a4a6fefcf69de5245934b4b0bfc0f8e20 (patch) | |
tree | 7035bf37330fabce2996f6a867c77ea00295b216 /core/helpers/core_menu.php | |
parent | 196ef392ab1dc32154ec8dbe49340d4aefb0d082 (diff) |
Convert all item->type == "album" to item->is_album()
Convert all item->type == "photo" to item->is_photo()
Diffstat (limited to 'core/helpers/core_menu.php')
-rw-r--r-- | core/helpers/core_menu.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/helpers/core_menu.php b/core/helpers/core_menu.php index 4720a00d..bb87c760 100644 --- a/core/helpers/core_menu.php +++ b/core/helpers/core_menu.php @@ -38,12 +38,12 @@ class core_menu_Core { ->label(t("Options")) ->append(Menu::factory("dialog") ->id("edit_item") - ->label($item->type == "album" ? t("Edit album") : t("Edit photo")) + ->label($item->is_album() ? t("Edit album") : t("Edit photo")) ->url(url::site("form/edit/{$item->type}s/$item->id")))); // @todo Move album options menu to the album quick edit pane // @todo Create resized item quick edit pane menu - if ($item->type == "album") { + if ($item->is_album()) { $options_menu ->append(Menu::factory("dialog") ->id("add_item") |