http://www.mediawiki.org/wiki/Special:Code/MediaWiki/82950
Revision: 82950
Author: jeroendedauw
Date: 2011-02-28 19:47:39 +0000 (Mon, 28 Feb 2011)
Log Message:
-----------
small tweaks
Modified Paths:
--------------
trunk/extensions/SemanticResultFormats/Timeline/SRF_Timeline.php
trunk/extensions/SemanticResultFormats/iCalendar/SRF_iCalendar.php
Modified: trunk/extensions/SemanticResultFormats/Timeline/SRF_Timeline.php
===================================================================
--- trunk/extensions/SemanticResultFormats/Timeline/SRF_Timeline.php
2011-02-28 19:47:29 UTC (rev 82949)
+++ trunk/extensions/SemanticResultFormats/Timeline/SRF_Timeline.php
2011-02-28 19:47:39 UTC (rev 82950)
@@ -214,7 +214,7 @@
if ( count( $positions ) > 0 ) {
ksort( $positions );
$positions = array_values( $positions );
-
+
switch ( $this->m_tlpos ) {
case 'start':
$result .= '<span
class="smwtlposition">' . $positions[0] . '</span>';
Modified: trunk/extensions/SemanticResultFormats/iCalendar/SRF_iCalendar.php
===================================================================
--- trunk/extensions/SemanticResultFormats/iCalendar/SRF_iCalendar.php
2011-02-28 19:47:29 UTC (rev 82949)
+++ trunk/extensions/SemanticResultFormats/iCalendar/SRF_iCalendar.php
2011-02-28 19:47:39 UTC (rev 82950)
@@ -49,7 +49,7 @@
}
public function getQueryMode( $context ) {
- return ( $context == SMWQueryProcessor::SPECIAL_PAGE ) ?
SMWQuery::MODE_INSTANCES:SMWQuery::MODE_NONE;
+ return ( $context == SMWQueryProcessor::SPECIAL_PAGE ) ?
SMWQuery::MODE_INSTANCES : SMWQuery::MODE_NONE;
}
public function getName() {
@@ -241,8 +241,8 @@
public function getParameters() {
$params = parent::exportFormatParameters();
- $params[] = array( 'name' => 'icalendartitle', 'type' =>
'string', 'description' => wfMsg( 'srf_paramdesc_icalendartitle' ) );
- $params[] = array( 'name' => 'icalendardescription', 'type' =>
'string', 'description' => wfMsg( 'srf_paramdesc_icalendardescription' ) );
+ $params[] = array( 'name' => 'title', 'type' => 'string',
'description' => wfMsg( 'srf_paramdesc_icalendartitle' ) );
+ $params[] = array( 'name' => 'description', 'type' => 'string',
'description' => wfMsg( 'srf_paramdesc_icalendardescription' ) );
return $params;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs