Page MenuHomePhabricator
Paste P1855

How to load a Thread from title
ActivePublic

Authored by Mattflaschen-WMF on Aug 7 2015, 6:58 PM.
mattflaschen@terbium:~$ mwscript eval.php --wiki=mediawikiwiki
> $t = Threads::withRoot( new Article( Title::newFromText( 'Thread:Project:Support_desk/How_to_recreate_the_search_index' ) ) );
> echo $t->getTitle();
Project:Support desk/LQT Archive 1

Event Timeline

Mattflaschen-WMF changed the title of this paste from untitled to How to load a Thread from title.
Mattflaschen-WMF updated the paste's language from autodetect to autodetect.