http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89575
Revision: 89575
Author: jeroendedauw
Date: 2011-06-06 16:00:18 +0000 (Mon, 06 Jun 2011)
Log Message:
-----------
small doc fix
Modified Paths:
--------------
trunk/extensions/SemanticResultFormats/TagCloud/SRF_TagCloud.php
Modified: trunk/extensions/SemanticResultFormats/TagCloud/SRF_TagCloud.php
===================================================================
--- trunk/extensions/SemanticResultFormats/TagCloud/SRF_TagCloud.php
2011-06-06 15:58:55 UTC (rev 89574)
+++ trunk/extensions/SemanticResultFormats/TagCloud/SRF_TagCloud.php
2011-06-06 16:00:18 UTC (rev 89575)
@@ -124,8 +124,8 @@
$tags = array();
while ( /* array of SMWResultArray */ $row =
$results->getNext() ) { // Objects (pages)
- for ( $i = 0, $n = count( $row ); $i < $n; $i++ ) { //
Properties
- while ( ( $obj = efSRFGetNextDV( $row[$i] ) )
!== false ) { // Property values
+ for ( $i = 0, $n = count( $row ); $i < $n; $i++ ) { //
SMWResultArray for a sinlge property
+ while ( ( /* SMWDataValue */ $dataValue =
efSRFGetNextDV( $row[$i] ) ) !== false ) { // Data values
$isSubject =
$row[$i]->getPrintRequest()->getMode() == SMWPrintRequest::PRINT_THIS;
@@ -135,12 +135,12 @@
}
// Get the HTML for the tag content.
Pages are linked, other stuff is just plaintext.
- if ( $obj->getTypeID() == '_wpg' ) {
- $value =
$obj->getTitle()->getText();
- $html = $obj->getLongText(
$outputmode, $this->getLinker( $isSubject ) );
+ if ( $dataValue->getTypeID() == '_wpg'
) {
+ $value =
$dataValue->getTitle()->getText();
+ $html =
$dataValue->getLongText( $outputmode, $this->getLinker( $isSubject ) );
}
else {
- $html = $obj->getShortText(
$outputmode, $this->getLinker( false ) );
+ $html =
$dataValue->getShortText( $outputmode, $this->getLinker( false ) );
$value = $html;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs