r26223 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26222‎ | r26223 | r26224 >
Date:19:35, 28 September 2007
Author:erik
Status:old
Tags:
Comment:
MW-like default/local settings separation
Modified paths:
  • /trunk/extensions/Wikidata/App.php (modified) (history)
  • /trunk/extensions/Wikidata/LocalApp.php.sample (added) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/LocalApp.php.sample
@@ -0,0 +1,10 @@
 2+<?php
 3+
 4+#### EXAMPLE LOCALAPP SETTINGS HERE
 5+#### COPY TO LocalApp.php IF NEEDED
 6+
 7+# When using an OmegaWiki dump:
 8+# Add the default class "Lexical Item" to all DefinedMeanings
 9+$wgDefaultClassMids = array(402295);
 10+
 11+?>
\ No newline at end of file
Index: trunk/extensions/Wikidata/App.php
@@ -1,5 +1,9 @@
22 <?php
33
 4+# DO NOT EDIT THIS FILE DIRECTLY. INSTEAD, COPY RELEVANT
 5+# CONFIGURATION VARIABLES TO LocalApp.php AND EDIT THEM
 6+# THERE.
 7+
48 $wgDefaultGoPrefix='Expression:';
59 $wgHooks['BeforePageDisplay'][]='addWikidataHeader';
610 $wgHooks['GetEditLinkTrail'][]='addWikidataEditLinkTrail';
@@ -30,14 +34,11 @@
3135
3236 # These are the user groups
3337 $wgGroupPermissions['wikidata-omega']['editwikidata-uw']=true;
34 -$wgGroupPermissions['wikidata-omega']['editwikidata-moo']=true;
35 -$wgGroupPermissions['wikidata-omega']['editwikidata-tt']=false;
36 -$wgGroupPermissions['wikidata-test']['editwikidata-tt']=true;
3738 $wgGroupPermissions['wikidata-copy']['wikidata-copy']=true;
3839
3940 # The permission needed to do ...
4041 $wgCommunityEditPermission="editwikidata-tt"; # only used for copy for now
41 -$wgCommunity_dc="tt";
 42+$wgCommunity_dc="uw";
4243 $extra_debugging=true;
4344
4445 # The site prefix allows us to have multiple sets of customized
@@ -57,6 +58,7 @@
5859 require_once("{$IP}/extensions/Wikidata/OmegaWiki/SpecialConceptMapping.php");
5960 require_once("{$IP}/extensions/Wikidata/OmegaWiki/SpecialCopy.php");
6061 require_once("{$IP}/extensions/Wikidata/OmegaWiki/SpecialExportTSV.php");
 62+require_once("{$IP}/extensions/Wikidata/LocalApp.php");
6163
6264 function addWikidataHeader() {
6365 global $wgOut,$wgScriptPath;
@@ -206,9 +208,6 @@
207209 'size' => 10,
208210 'options' => $datasetarray
209211 );
210 - $wgPropertyToColumnFilters = array(
211 - new PropertyToColumnFilter("partOfSpeech", "Part of speech", array(358760))
212 - );
213212
214213 global
215214 $messageCacheOK;

Status & tagging log