Module:Documentation: Difference between revisions

only return contentTitle if it will be used
m>Jackmcbarn
(ugly hack so that expanding of the /doc subpage doesn't count against Lua's time limit)
m>Jackmcbarn
(only return contentTitle if it will be used)
Line 661: Line 661:
env = env or p.getEnvironment(args)
env = env or p.getEnvironment(args)
local docTitle = env.docTitle
local docTitle = env.docTitle
if docTitle and docTitle.exists then
if not args.content and docTitle and docTitle.exists then
return docTitle.prefixedText
return docTitle.prefixedText
else
else
Anonymous user