Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -327,17 +327,25 @@ |
328 | 328 | if ( method_exists( $wgOut, 'includeJQuery' ) ) { |
329 | 329 | $wgOut->includeJQuery(); |
330 | 330 | } else { |
331 | | - $wgOut->addScript( "<script type=\"$wgJsMimeType\" src=\"$jspath/jquery.js?$wgCollectionStyleVersion\"></script>" ); |
| 331 | + $wgOut->addScript( "<script type=\"$wgJsMimeType\" src=\"$jspath/jquery.js?" . |
| 332 | + "$wgCollectionStyleVersion\"></script>" ); |
332 | 333 | } |
333 | | - $wgOut->addScript( "<script type=\"$wgJsMimeType\" src=\"$jspath/jquery.json.js?$wgCollectionStyleVersion\"></script>" ); |
334 | | - $wgOut->addScript( "<script type=\"$wgJsMimeType\" src=\"$jspath/jstorage.js?$wgCollectionStyleVersion\"></script>" ); |
335 | | - $wgOut->addScript( "<script type=\"$wgJsMimeType\" src=\"$jspath/check_load_from_localstorage.js?$wgCollectionStyleVersion\"></script>" ); |
| 334 | + $wgOut->addScript( "<script type=\"$wgJsMimeType\" src=\"$jspath/jquery.json.js?" . |
| 335 | + "$wgCollectionStyleVersion\"></script>" ); |
| 336 | + $wgOut->addScript( "<script type=\"$wgJsMimeType\" src=\"$jspath/jstorage.js?" . |
| 337 | + "$wgCollectionStyleVersion\"></script>" ); |
| 338 | + $wgOut->addScript( "<script type=\"$wgJsMimeType\" src=\"$jspath/check_load_from_localstorage.js?" . |
| 339 | + "$wgCollectionStyleVersion\"></script>" ); |
336 | 340 | |
337 | 341 | $coll = CollectionSession::getCollection(); |
338 | 342 | $dialogtxt = wfMsg( 'coll-load_local_book' ); |
339 | 343 | $redirecturl = SkinTemplate::makeSpecialUrl( 'Book' ); |
340 | 344 | |
341 | | - $wgOut->addScript( "<script type=\"$wgJsMimeType\">var collection_dialogtxt = " . Xml::encodeJsVar( $dialogtxt ) . "; var collection_redirect_url = " . Xml::encodeJsVar( $redirecturl ) . ";</script>" ); |
| 345 | + $wgOut->addScript( |
| 346 | + "<script type=\"$wgJsMimeType\">\n" . |
| 347 | + "var collection_dialogtxt = " . Xml::encodeJsVar( $dialogtxt ) . ";\n" . |
| 348 | + "var collection_redirect_url = " . Xml::encodeJsVar( $redirecturl ) . ";\n" . |
| 349 | + "</script>" ); |
342 | 350 | |
343 | 351 | $wgOut->mScripts .= <<<EOS |
344 | 352 | <style type="text/css"> |