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

--- Comment #1 from Sam Reed (reedy) <s...@reedyboy.net> ---
        if ( $this->thread->hasSuperthread() ) {
            $topmostTitle = $this->thread->topmostThread()->title();
            $topmostTitle->setFragment( $fragment );

            $linkText = wfMessage( 'lqt_discussion_link' )->parse();
            $permalink = Linker::link( $topmostTitle, $linkText );

            return wfMessage( 'lqt_fragment' )->rawParams( $permalink,
$talkpage_link )->parse();
        } else {
            return wfMessage( 'lqt_from_talk' )->rawParams( $talkpage_link
)->parse();
        }


Can and will return null:
$topmostTitle = $this->thread->topmostThread()->title();

-- 
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