Modul:Namespace detect: Unterschied zwischen den Versionen
properly handle bad titles and pages exceeding the expensive function limit
(better comments) |
(properly handle bad titles and pages exceeding the expensive function limit) |
||
| Zeile 98: | Zeile 98: | ||
ret = detectNamespace( getPageObject() ) | ret = detectNamespace( getPageObject() ) | ||
else | else | ||
-- If pageObject is nil, we are either over the expensive | |||
-- function limit, or the page title is invalid. In both of | |||
-- these cases {{NAMESPACE}} defaults to the blank string, so | |||
-- we should do so too. | |||
ret = '' | |||
end | end | ||
end | end | ||