Skip to content
Snippets Groups Projects
Verified Commit 0d4044ad authored by Jake's avatar Jake :speech_balloon:
Browse files

only register published pages in tags

parent 17600c7c
No related branches found
No related tags found
No related merge requests found
Pipeline #313942 passed
......@@ -256,6 +256,8 @@ class Tag:
def reg_page(self, page, is_category = False):
if page == None:
return
if page.status != "published":
return
if page.lang != self.lang:
raise Exception("Page has different lang than Tag.", page.lang, tag.lang)
self.pages.add(page)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment