Skip to content

Commit

Permalink
Remove ancient comments about portal_properties in get_navigation_root.
Browse files Browse the repository at this point in the history
The code was already checking the configuration registry, but the comments had not been updated.
[ci skip]
  • Loading branch information
mauritsvanrees committed Jun 19, 2024
1 parent 2ef2838 commit 234018b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plone/base/navigationroot.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def get_navigation_root(context, relativeRoot=None):
portal path and this relativeRoot.
If no relativeRoot argument is provided, and there is a root value set in
portal_properties, navigation root path is computed from
the configuration registry, navigation root path is computed from
portal path and this root value.
IMPORTANT !!!
Expand All @@ -32,7 +32,7 @@ def get_navigation_root(context, relativeRoot=None):
return "/".join(getSite().getPhysicalPath())

if relativeRoot is None:
# fetch from portal_properties
# fetch from configuration registry
registry = getUtility(IRegistry)
relativeRoot = registry.get("plone.root", None)

Expand Down

0 comments on commit 234018b

Please sign in to comment.