if ( $url === false
&& $wgVariantArticlePath
&& preg_match( '/^variant=([^&]*)$/', $query, $matches )
- && $wgContLang->getCode() === $this->getPageLanguage()->getCode()
+ && $this->getPageLanguage()->equals( $wgContLang )
&& $this->getPageLanguage()->hasVariants()
) {
$variant = urldecode( $matches[1] );
$conds = $this->pageCond();
$dbw->onTransactionIdle( function () use ( $dbw, $conds, $method, $purgeTime ) {
$dbTimestamp = $dbw->timestamp( $purgeTime ?: time() );
-
$dbw->update(
'page',
[ 'page_touched' => $dbTimestamp ],