http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88339
Revision: 88339
Author: jeroendedauw
Date: 2011-05-17 18:39:56 +0000 (Tue, 17 May 2011)
Log Message:
-----------
fix SMW resource loading
Modified Paths:
--------------
trunk/extensions/SemanticWatchlist/specials/SpecialSemanticWatchlist.php
Modified:
trunk/extensions/SemanticWatchlist/specials/SpecialSemanticWatchlist.php
===================================================================
--- trunk/extensions/SemanticWatchlist/specials/SpecialSemanticWatchlist.php
2011-05-17 18:36:17 UTC (rev 88338)
+++ trunk/extensions/SemanticWatchlist/specials/SpecialSemanticWatchlist.php
2011-05-17 18:39:56 UTC (rev 88339)
@@ -106,13 +106,15 @@
foreach ( $changeSet->getAllProperties() as /* SMWDIProperty */
$property ) {
foreach ( $changeSet->getAllPropertyChanges( $property
) as /* SMWPropertyChange */ $change ) {
$old = $change->getOldValue();
- $old = is_null( $old ) ? wfMsg( 'swl-novalue' )
: SMWDataValueFactory::newDataItemValue( $old, $property )->getLongWikiText();
+ $old = is_null( $old ) ? wfMsg( 'swl-novalue' )
: SMWDataValueFactory::newDataItemValue( $old, $property )->getLongHTMLText();
$new = $change->getNewValue();
- $new = is_null( $new ) ? wfMsg( 'swl-novalue' )
: SMWDataValueFactory::newDataItemValue( $new, $property )->getLongWikiText();
+ $new = is_null( $new ) ? wfMsg( 'swl-novalue' )
: SMWDataValueFactory::newDataItemValue( $new, $property )->getLongHTMLText();
$wgOut->addHTML( '<li>' . $old . ' -> ' . $new
. '</li>' );
}
}
+ SMWOutputs::commitToOutputPage( $wgOut );
+
$wgOut->addHTML( '</ul>' );
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs