r77773 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77772‎ | r77773 | r77774 >
Date:05:47, 5 December 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Follow up to r 77772
Modified paths:
  • /trunk/extensions/SemanticResultFormats/Timeline/SRF_Timeline.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/Timeline/SRF_Timeline.php
@@ -78,9 +78,7 @@
7979 '/Timeline/SimileTimeline/timeline-api.js"></script>'
8080 );
8181 }
82 -
8382
84 -
8583 $eventline = ( 'eventline' == $this->mFormat );
8684
8785 if ( !$eventline && ( $this->m_tlstart == '' ) ) { // seek defaults
@@ -274,6 +272,11 @@
275273 return $params;
276274 }
277275
 276+ /**
 277+ * Register the resource modules used by this result printer.
 278+ *
 279+ * @since 1.5.2
 280+ */
278281 public function registerResourceModules() {
279282 global $wgResourceModules, $srfgScriptPath;
280283
@@ -284,7 +287,8 @@
285288 );
286289
287290 $wgResourceModules['ext.srf.timeline'] = $moduleTemplate + array(
288 - 'styles' => 'SRF_timeline.js'
 291+ 'styles' => 'SRF_timeline.js',
 292+ 'dependencies' => 'mediawiki.legacy.wikibits'
289293 );
290294
291295 $wgResourceModules['ext.srf.timeline.api'] = $moduleTemplate + array(

Status & tagging log