Modul:Namespace detect: Unterschied zwischen den Versionen

undo - on second thoughts, these failure modes are pretty arbitrary (bad titles actually default to "talk"), so changing them to both default to "other" is probably for the best
(properly handle bad titles and pages exceeding the expensive function limit)
(undo - on second thoughts, these failure modes are pretty arbitrary (bad titles actually default to "talk"), so changing them to both default to "other" is probably for the best)
Zeile 98: Zeile 98:
             ret = detectNamespace( getPageObject() )
             ret = detectNamespace( getPageObject() )
         else
         else
             -- If pageObject is nil, we are either over the expensive
             return nil -- return nil if the page object doesn't exist.
            -- 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