Zum Inhalt springen

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
             return nil -- return nil if the page object doesn't exist.
             -- 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