Skip to content
Snippets Groups Projects
Commit 09287027 authored by Jeremy Kersten's avatar Jeremy Kersten
Browse files

[FIX] website: allow to get current website without fallback

Before this commit, when we ask for get_current_website, we always
get one website. If we don't know which, we took the first one.

Now we can ask, if we are into a website context or not with a new argument fallback.

Previous code like:
   website = get_current_website()
   if website:
       ...
Have now a sense ;)
parent bcf8bb83
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment