phase.
* The global function wfErrorLog, deprecated since 1.25, has now been removed.
Use MWLoggerLegacyLogger::emit or UDPTransport.
+ The hooks 'SpecialRecentChangesQuery' & 'SpecialWatchlistQuery', deprecated in
+ 1.23, were removed. Instead, use ChangesListSpecialPageStructuredFilters or
+ ChangesListSpecialPageQuery.
=== Deprecations in 1.32 ===
* HTMLForm::setSubmitProgressive() is deprecated. No need to call it. Submit
&$extraOpts: array of added items, to which can be added
$opts: FormOptions for this request
-'SpecialRecentChangesQuery': DEPRECATED since 1.23! Use
-ChangesListSpecialPageStructuredFilters or ChangesListSpecialPageQuery instead.
-Called when building SQL query for SpecialRecentChanges and
-SpecialRecentChangesLinked.
-&$conds: array of WHERE conditionals for query
-&$tables: array of tables to be queried
-&$join_conds: join conditions for the tables
-$opts: FormOptions for this request
-&$query_options: array of options for the database request
-&$select: Array of columns to select
-
'SpecialResetTokensTokens': Called when building token list for
SpecialResetTokens.
&$tokens: array of token information arrays in the format of
inserted to rc_type so they can be returned as part of the watchlist.
&$nonRevisionTypes: array of values in the rc_type field of recentchanges table
-'SpecialWatchlistQuery': DEPRECATED since 1.23! Use
-ChangesListSpecialPageStructuredFilters or ChangesListSpecialPageQuery instead.
-Called when building sql query for SpecialWatchlist.
-&$conds: array of WHERE conditionals for query
-&$tables: array of tables to be queried
-&$join_conds: join conditions for the tables
-&$fields: array of query fields
-$opts: A FormOptions object with watchlist options for the current request
-
'TestCanonicalRedirect': Called when about to force a redirect to a canonical
URL for a title when we have no other parameters on the URL. Gives a chance for
extensions that alter page view behavior radically to abort that redirect or
return $rows;
}
- protected function runMainQueryHook( &$tables, &$fields, &$conds,
- &$query_options, &$join_conds, $opts
- ) {
- return parent::runMainQueryHook( $tables, $fields, $conds, $query_options, $join_conds, $opts )
- && Hooks::run(
- 'SpecialRecentChangesQuery',
- [ &$conds, &$tables, &$join_conds, $opts, &$query_options, &$fields ],
- '1.23'
- );
- }
-
protected function getDB() {
return wfGetDB( DB_REPLICA, 'recentchanges' );
}
);
}
- protected function runMainQueryHook( &$tables, &$fields, &$conds, &$query_options,
- &$join_conds, $opts
- ) {
- return parent::runMainQueryHook( $tables, $fields, $conds, $query_options, $join_conds, $opts )
- && Hooks::run(
- 'SpecialWatchlistQuery',
- [ &$conds, &$tables, &$join_conds, &$fields, $opts ],
- '1.23'
- );
- }
-
/**
* Return a IDatabase object for reading
*
null
);
- $this->setTemporaryHook(
- 'SpecialWatchlistQuery',
- null
- );
-
$this->setTemporaryHook(
'ChangesListSpecialPageQuery',
null