Page MenuHomePhabricator

Title::getLocalURL() depends on $wgRequest
Open, Needs TriagePublic

Description

MediaWiki 1.34.3, PHP 7.4.

In line 2211 of includes/Title.php we have:

			if ( $wgRequest->getVal( 'action' ) == 'render' ) {
				$url = $wgServer . $url;
			}

Is this right? Isn't Title::getLocalURL() supposed to work in any context, whether or not $wgRequest is already (or at all) set?