VitaliyFilippov has uploaded a new change for review.
https://gerrit.wikimedia.org/r/84744
Change subject: Disable type enforcement for properties with names equal to
type names.
......................................................................
Disable type enforcement for properties with names equal to type names.
Now if you try to use some property named like an SMW builtin type
(for example, "[[Telephone number::jqlqdjq]]"), its type will be
always forced to be Telephone number, i.e. you can't override it
with [[has type::]]. I think this is an unevident and undocumented
behaviour, so this patch disables it.
Change-Id: I4b4922c6d5df4d3455d667f98732e13bab403769
---
M includes/dataitems/SMW_DI_Property.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticMediaWiki
refs/changes/44/84744/1
diff --git a/includes/dataitems/SMW_DI_Property.php
b/includes/dataitems/SMW_DI_Property.php
index ca74d61..4687a8e 100644
--- a/includes/dataitems/SMW_DI_Property.php
+++ b/includes/dataitems/SMW_DI_Property.php
@@ -370,8 +370,8 @@
global $smwgContLang, $smwgUseCategoryHierarchy;
$datatypeLabels = $smwgContLang->getDatatypeLabels();
- SMWDIProperty::$m_prop_labels =
$smwgContLang->getPropertyLabels() + $datatypeLabels;
- SMWDIProperty::$m_prop_aliases =
$smwgContLang->getPropertyAliases() + $smwgContLang->getDatatypeAliases();
+ SMWDIProperty::$m_prop_labels =
$smwgContLang->getPropertyLabels();
+ SMWDIProperty::$m_prop_aliases =
$smwgContLang->getPropertyAliases();
// Setup built-in predefined properties.
// NOTE: all ids must start with underscores. The translation
// for each ID, if any, is defined in the language files.
--
To view, visit https://gerrit.wikimedia.org/r/84744
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4b4922c6d5df4d3455d667f98732e13bab403769
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticMediaWiki
Gerrit-Branch: master
Gerrit-Owner: VitaliyFilippov <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits