Index: trunk/extensions/SemanticDrilldown/includes/SD_GlobalFunctions.php |
— | — | @@ -7,7 +7,7 @@ |
8 | 8 | |
9 | 9 | if (!defined('MEDIAWIKI')) die(); |
10 | 10 | |
11 | | -define('SD_VERSION','0.6.2'); |
| 11 | +define('SD_VERSION','0.7'); |
12 | 12 | |
13 | 13 | // constants for special properties |
14 | 14 | define('SD_SP_HAS_FILTER', 1); |
— | — | @@ -36,9 +36,6 @@ |
37 | 37 | $wgExtensionMessagesFiles['SemanticDrilldown'] = $sdgIP . '/languages/SD_Messages.php'; |
38 | 38 | $wgExtensionAliasesFiles['SemanticDrilldown'] = $sdgIP . '/languages/SD_Aliases.php'; |
39 | 39 | |
40 | | -$wgHooks['smwInitProperties'][] = 'sdfInitProperties'; |
41 | | -$wgHooks['AdminLinks'][] = 'sdfAddToAdminLinks'; |
42 | | - |
43 | 40 | // register all special pages and other classes |
44 | 41 | $wgSpecialPages['Filters'] = 'SDFilters'; |
45 | 42 | $wgAutoloadClasses['SDFilters'] = $sdgIP . '/specials/SD_Filters.php'; |
— | — | @@ -55,6 +52,12 @@ |
56 | 53 | $wgAutoloadClasses['SDFilterValue'] = $sdgIP . '/includes/SD_FilterValue.php'; |
57 | 54 | $wgAutoloadClasses['SDAppliedFilter'] = $sdgIP . '/includes/SD_AppliedFilter.php'; |
58 | 55 | |
| 56 | +$wgHooks['smwInitProperties'][] = 'sdfInitProperties'; |
| 57 | +$wgHooks['AdminLinks'][] = 'sdfAddToAdminLinks'; |
| 58 | +$wgHooks['MagicWordwgVariableIDs'][] = 'SDUtils::addMagicWordVariableIDs'; |
| 59 | +$wgHooks['LanguageGetMagic'][] = 'SDUtils::addMagicWordLanguage'; |
| 60 | +$wgHooks['ParserBeforeTidy'][] = 'SDUtils::handleShowAndHide'; |
| 61 | + |
59 | 62 | /**********************************************/ |
60 | 63 | /***** namespace settings *****/ |
61 | 64 | /**********************************************/ |
— | — | @@ -186,7 +189,7 @@ |
187 | 190 | $sd_prop_aliases = $sdgContLang->getPropertyAliases(); |
188 | 191 | foreach ($sd_prop_aliases as $prop_alias => $prop_id) { |
189 | 192 | $prop_vals = $sd_property_vals[$prop_id]; |
190 | | - SMWPropertyValue::registerProperty($prop_vals[0], $prop_vals[1], $prop_alias, true); |
| 193 | + SMWPropertyValue::registerPropertyAlias($prop_vals[0], $prop_alias); |
191 | 194 | } |
192 | 195 | } |
193 | 196 | return true; |