Index: trunk/extensions/SemanticResultFormats/Timeline/SRF_Timeline.php |
— | — | @@ -78,9 +78,7 @@ |
79 | 79 | '/Timeline/SimileTimeline/timeline-api.js"></script>' |
80 | 80 | ); |
81 | 81 | } |
82 | | - |
83 | 82 | |
84 | | - |
85 | 83 | $eventline = ( 'eventline' == $this->mFormat ); |
86 | 84 | |
87 | 85 | if ( !$eventline && ( $this->m_tlstart == '' ) ) { // seek defaults |
— | — | @@ -274,6 +272,11 @@ |
275 | 273 | return $params; |
276 | 274 | } |
277 | 275 | |
| 276 | + /** |
| 277 | + * Register the resource modules used by this result printer. |
| 278 | + * |
| 279 | + * @since 1.5.2 |
| 280 | + */ |
278 | 281 | public function registerResourceModules() { |
279 | 282 | global $wgResourceModules, $srfgScriptPath; |
280 | 283 | |
— | — | @@ -284,7 +287,8 @@ |
285 | 288 | ); |
286 | 289 | |
287 | 290 | $wgResourceModules['ext.srf.timeline'] = $moduleTemplate + array( |
288 | | - 'styles' => 'SRF_timeline.js' |
| 291 | + 'styles' => 'SRF_timeline.js', |
| 292 | + 'dependencies' => 'mediawiki.legacy.wikibits' |
289 | 293 | ); |
290 | 294 | |
291 | 295 | $wgResourceModules['ext.srf.timeline.api'] = $moduleTemplate + array( |