http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88572
Revision: 88572
Author: mkroetzsch
Date: 2011-05-22 12:46:44 +0000 (Sun, 22 May 2011)
Log Message:
-----------
do not include namespace prefix in the wikitext of property data values
Modified Paths:
--------------
trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Property.php
trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_WikiPage.php
Modified:
trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Property.php
===================================================================
--- trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Property.php
2011-05-22 12:26:07 UTC (rev 88571)
+++ trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Property.php
2011-05-22 12:46:44 UTC (rev 88572)
@@ -210,7 +210,7 @@
}
public function getWikiValue() {
- return $this->isVisible() ? ( ( $this->isInverse() ? '-' : '' )
. $this->getWikiPageValue()->getWikiValue() ) : '';
+ return $this->isVisible() ? ( ( $this->isInverse() ? '-' : '' )
. $this->m_dataitem->getLabel() ) : '';
}
/**
Modified:
trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_WikiPage.php
===================================================================
--- trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_WikiPage.php
2011-05-22 12:26:07 UTC (rev 88571)
+++ trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_WikiPage.php
2011-05-22 12:46:44 UTC (rev 88572)
@@ -313,8 +313,8 @@
* If a fixed namespace is set, we do not return the namespace prefix
explicitly.
*/
protected function getCaption() {
- return $this->m_caption !== false ? $this->m_caption:
- ( $this->m_fixNamespace == NS_MAIN ?
$this->getPrefixedText():$this->getText() );
+ return $this->m_caption !== false ? $this->m_caption :
+ ( $this->m_fixNamespace == NS_MAIN ?
$this->getPrefixedText() : $this->getText() );
}
/**
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs