X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d0a6dd09b9cd9d1c493c15adfd25b880f505e9af..6769f06b626d566508eaa96a9892d05aeb331f24:/cookbooks/mediawiki/templates/default/mw-ext-TitleBlacklist.inc.php.erb?ds=sidebyside 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 6e6d7ed68..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, - 'src' => 'http://meta.wikimedia.org/w/index.php?title=Title_blacklist&action=raw', + '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;