summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticResultFormats/formats/valuerank/SRF_ValueRank.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/SemanticResultFormats/formats/valuerank/SRF_ValueRank.php')
-rw-r--r--www/wiki/extensions/SemanticResultFormats/formats/valuerank/SRF_ValueRank.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/wiki/extensions/SemanticResultFormats/formats/valuerank/SRF_ValueRank.php b/www/wiki/extensions/SemanticResultFormats/formats/valuerank/SRF_ValueRank.php
index f3df915e..eba7fd3f 100644
--- a/www/wiki/extensions/SemanticResultFormats/formats/valuerank/SRF_ValueRank.php
+++ b/www/wiki/extensions/SemanticResultFormats/formats/valuerank/SRF_ValueRank.php
@@ -92,7 +92,7 @@ class SRFValueRank extends SMWResultPrinter {
// Get the HTML for the tag content. Pages are linked, other stuff is just plaintext.
if ( $dataValue->getTypeID() == '_wpg' ) {
- $value = $dataValue->getTitle()->getText();
+ $value = $dataValue->getDataItem()->getTitle()->getText();
$html = $dataValue->getLongText( $outputMode, $this->getLinker( $isSubject ) );
} else {
$html = $dataValue->getShortText( $outputMode, $this->getLinker( false ) );
@@ -262,4 +262,4 @@ class SRFValueRank extends SMWResultPrinter {
return $params;
}
-} \ No newline at end of file
+}