Commit a2c7f91d authored by Aurélien Gâteau's avatar Aurélien Gâteau

List only the project pages in "Related Pages"

This avoids cluttering "Related Pages" with links to pages from external
projects.
parent 8eeaae0b
...@@ -3173,9 +3173,10 @@ static void writePageIndex(OutputList &ol) ...@@ -3173,9 +3173,10 @@ static void writePageIndex(OutputList &ol)
PageDef *pd=0; PageDef *pd=0;
for (pdi.toFirst();(pd=pdi.current());++pdi) for (pdi.toFirst();(pd=pdi.current());++pdi)
{ {
if (pd->getOuterScope()==0 || if ((pd->getOuterScope()==0 ||
pd->getOuterScope()->definitionType()!=Definition::TypePage pd->getOuterScope()->definitionType()!=Definition::TypePage) && // not a sub page
) // not a sub page !pd->isReference() // not an external page
)
{ {
writePages(pd,ftv); writePages(pd,ftv);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment