Index: trunk/extensions/Wikidata/OmegaWiki/SpecialDatasearch.php |
— | — | @@ -35,7 +35,17 @@ |
36 | 36 | |
37 | 37 | function SpecialDatasearch() { |
38 | 38 | SpecialPage::SpecialPage('Datasearch'); |
| 39 | + } |
| 40 | + |
| 41 | + function execute($parameter) { |
| 42 | + global |
| 43 | + $wgOut, $wgTitle; |
39 | 44 | |
| 45 | + initializeOmegaWikiAttributes(new ViewInformation()); |
| 46 | + |
| 47 | + global |
| 48 | + $definedMeaningReferenceType; |
| 49 | + |
40 | 50 | require_once("WikiDataGlobals.php"); |
41 | 51 | require_once("forms.php"); |
42 | 52 | require_once("type.php"); |
— | — | @@ -44,11 +54,6 @@ |
45 | 55 | require_once("OmegaWikiAttributes.php"); |
46 | 56 | require_once("OmegaWikiRecordSets.php"); |
47 | 57 | require_once("OmegaWikiEditors.php"); |
48 | | - |
49 | | - initializeOmegaWikiAttributes(new ViewInformation()); |
50 | | - |
51 | | - global |
52 | | - $definedMeaningReferenceType; |
53 | 58 | |
54 | 59 | $this->spellingAttribute = new Attribute("found-word", "Found word", "short-text"); |
55 | 60 | $this->languageAttribute = new Attribute("language", "Language", "language"); |
— | — | @@ -71,11 +76,6 @@ |
72 | 77 | $this->collectionAttribute, |
73 | 78 | $this->collectionMemberAttribute |
74 | 79 | ); |
75 | | - } |
76 | | - |
77 | | - function execute($parameter) { |
78 | | - global |
79 | | - $wgOut, $wgTitle; |
80 | 80 | |
81 | 81 | if(array_key_exists('search-text', $_GET)) { |
82 | 82 | $searchText = ltrim($_GET['search-text']); |
Index: trunk/extensions/Wikidata/OmegaWiki/Transaction.php |
— | — | @@ -235,6 +235,7 @@ |
236 | 236 | $recordLifeSpanStructure = new Structure($o->addTransaction, $o->removeTransaction); |
237 | 237 | $o->recordLifeSpan = new Attribute('record-life-span', 'Record life span', $recordLifeSpanStructure); |
238 | 238 | |
| 239 | + |
239 | 240 | function getUserName($userId) { |
240 | 241 | $dbr =& wfGetDB(DB_SLAVE); |
241 | 242 | $queryResult = $dbr->query("SELECT user_name FROM user WHERE user_id=$userId"); |