https://bugzilla.wikimedia.org/show_bug.cgi?id=59012

--- Comment #10 from glen...@gmail.com ---
If I do this:

        if ( $page instanceof FlaggableWikiPage ) {
            $article = $page;
        } elseif ( $page instanceof WikiPage ) {
            $article = FlaggableWikiPage::getTitleInstance( $page->getTitle()
);
        } elseif ( $page instanceof Title ) {
            $article = FlaggableWikiPage::getTitleInstance( $page );
        } else {
            var_dump(get_class($page)); // *** HERE ***
            throw new MWException( "First argument must be a Title or
WikiPage." );
        }

It prints "Article" -- I have no idea what that means, but I'm sure you do. :-)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to