X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a9d9fe7e291ad539f92e1a109995ca4cdc0d5892..912efbc1f99141d3e1540fc127496f80c81b310e:/cookbooks/mediawiki/templates/default/mw-ext-TitleBlacklist.inc.php.erb diff --git a/cookbooks/mediawiki/templates/default/mw-ext-TitleBlacklist.inc.php.erb b/cookbooks/mediawiki/templates/default/mw-ext-TitleBlacklist.inc.php.erb index 37eecee47..111ff3d2f 100644 --- a/cookbooks/mediawiki/templates/default/mw-ext-TitleBlacklist.inc.php.erb +++ b/cookbooks/mediawiki/templates/default/mw-ext-TitleBlacklist.inc.php.erb @@ -3,11 +3,15 @@ wfLoadExtension( 'TitleBlacklist' ); $wgTitleBlacklistSources = array( array( - 'type' => TBLSRC_LOCALPAGE, + 'type' => 'localpage', 'src' => 'MediaWiki:Titleblacklist', ), array( - 'type' => TBLSRC_URL, + 'type' => 'url', 'src' => 'https://meta.wikimedia.org/w/index.php?title=Title_blacklist&action=raw', ), ); +# log hits, but allow only administrators to view them +$wgTitleBlacklistLogHits = true; +$wgGroupPermissions['user']['titleblacklistlog'] = false; +$wgGroupPermissions['sysop']['titleblacklistlog'] = true;