[00:46:02] How do I get a mediawiki User object given their email address? I'm new to the mediawiki codebase [00:57:11] im getting warnings about $wgParser being deprecated. i'm running 1.38-2 and it seems that my w/includes/Setup.php has a declaration of $wgParser in it. is that correct? [00:58:54] http://ix.io/496d [01:06:55] nnyby: something like: $dbr = wfGetDB( DB_REPLICA ); $id = $dbr->selectField( 'user', 'user_id', [ 'user_email' => 'foo@bar.com' ] ); $user = User::newFromId( $id ); [01:10:06] just copy PasswordReset::getUsersByEmail() [01:10:44] it's doing it the right way, with User::getQueryInfo() so that it has all the fields it needs, avoiding a second query in User::newFromId() [01:11:22] except that the !$res is unnecessary, that's never going to happen [01:13:38] ori: thx [01:14:00] i also found https://www.mediawiki.org/wiki/Manual:Database_access [01:37:04] k-man: that shouldn't happen. You should probably figure ot how to get a proper stack trace. [21:24:21] Not sure if the Element markdown comes across correctly if this is a bridge? [22:48:57] BryanHilderbrand: all formatting is stripped across the bridge, pretty much