r65939 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65938‎ | r65939 | r65940 >
Date:04:54, 5 May 2010
Author:tstarling
Status:ok
Tags:
Comment:
Break some long lines.
Modified paths:
  • /trunk/extensions/Collection/Collection.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/Collection.body.php
@@ -327,17 +327,25 @@
328328 if ( method_exists( $wgOut, 'includeJQuery' ) ) {
329329 $wgOut->includeJQuery();
330330 } 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>" );
332333 }
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>" );
336340
337341 $coll = CollectionSession::getCollection();
338342 $dialogtxt = wfMsg( 'coll-load_local_book' );
339343 $redirecturl = SkinTemplate::makeSpecialUrl( 'Book' );
340344
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>" );
342350
343351 $wgOut->mScripts .= <<<EOS
344352 <style type="text/css">

Status & tagging log