]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/mediawiki/templates/default/mw-ext-TitleBlacklist.inc.php.erb
build(deps): bump rexml from 3.3.0 to 3.3.2
[chef.git] / cookbooks / mediawiki / templates / default / mw-ext-TitleBlacklist.inc.php.erb
index c7c9810706ed883c6a08aedf5bf2a9c81f8be58f..111ff3d2fbefd38c3eb66273e15b5f066963ade6 100644 (file)
@@ -1,13 +1,17 @@
 <?php
 # DO NOT EDIT - This file is being maintained by Chef
-require_once($IP .'/extensions/TitleBlacklist/TitleBlacklist.php');
+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;