Skip to content

Commit

Permalink
adapt for Plone 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Oct 17, 2023
1 parent dfb352d commit 4c79191
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/plone/restapi/services/site/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,14 @@ def __call__(self, expand=False):
image_settings = registry.forInterface(
IImagingSchema, prefix="plone", check=False
)
result["site"].update(
{
result["site"].update({
"plone.allowed_sizes": image_settings.allowed_sizes,
}
)
})

result["site"].update(
{
result["site"].update({
"plone.site_title": portal_state.portal_title(),
"plone.allowed_sizes": image_settings.allowed_sizes,
}
)
})

return result

Expand Down

0 comments on commit 4c79191

Please sign in to comment.