// The constant prefix is smaller than el_index_60, so we use a LIKE
// for a prefix search.
return [
- "{$p}_index_60" . $db->buildLike( [ $index, $db->anyString() ] ),
+ "{$p}_index_60" . $db->buildLike( $index, $db->anyString() ),
"{$p}_index" . $db->buildLike( $like ),
];
}
$res = false;
if ( $this->useMessageCache() ) {
try {
- $res = wfMessage( $key, $params )->text();
+ $res = wfMessage( $key, ...$params )->text();
} catch ( Exception $e ) {
}
}
// FIXME: Keep logic in sync with MWException::msg.
try {
- $res = wfMessage( $key, $params )->text();
+ $res = wfMessage( $key, ...$params )->text();
} catch ( Exception $e ) {
$res = wfMsgReplaceArgs( $fallback, $params );
// If an exception happens inside message rendering,
$params[] = $db->anyString();
}
array_pop( $params ); // Get rid of the last % we added.
- $this->mConds[] = 'log_title' . $db->buildLike( $params );
+ $this->mConds[] = 'log_title' . $db->buildLike( ...$params );
} elseif ( $pattern && !$wgMiserMode ) {
$this->mConds[] = 'log_title' . $db->buildLike( $title->getDBkey(), $db->anyString() );
$this->pattern = $pattern;