* Add an ID if 'missingsummary' is triggered to allow styling of the summary
line
* Add logging to password resets if not resetting your own
+* Added $wgUseTagFilter to control enabling of filter-by-change-tag
=== Bug fixes in 1.15 ===
* (bug 16968) Special:Upload no longer throws useless warnings.
* Needs $tables to be set up properly, so we can figure out which join conditions to use.
*/
static function modifyDisplayQuery( &$tables, &$fields, &$conds, &$join_conds, $filter_tag = false ) {
- global $wgRequest;
+ global $wgRequest, $wgUseTagFilter;
+
+ if( !$wgUseTagFilter ) {
+ return;
+ }
if ($filter_tag === false) {
$filter_tag = $wgRequest->getVal( 'tagfilter' );
* If $fullForm is true, it returns an entire form.
*/
static function buildTagFilterSelector( $selected='', $fullForm = false /* used to put a full form around the selector */ ) {
-
- if ( !count( self::listDefinedTags() ) )
+ global $wgUseTagFilter;
+
+ if ( !$wgUseTagFilter || !count( self::listDefinedTags() ) )
return $fullForm ? '' : array();
global $wgTitle;
* Preprocessor caching threshold
*/
$wgPreprocessorCacheThreshold = 1000;
+
+/**
+ * Allow filtering by change tag in recentchanges, history, etc
+ * Has no effect if no tags are defined in valid_tag.
+ */
+$wgUseTagFilter = true;