r68480 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68479‎ | r68480 | r68481 >
Date:19:14, 23 June 2010
Author:tparscal
Status:ok
Tags:
Comment:
Fixed $this->lang which was supposed to be $lang. Also fixed wrong jquery path.
Modified paths:
  • /branches/resourceloader/phase3/includes/ResourceLoader.php (modified) (history)

Diff [purge]

Index: branches/resourceloader/phase3/includes/ResourceLoader.php
@@ -27,7 +27,7 @@
2828 * List of core scripts to include if the "core" module is specified - it's like a bucket
2929 */
3030 private static $coreScripts = array(
31 - 'jquery' => 'resources/core/jquery-1.4.2.min.js',
 31+ 'jquery' => 'resources/core/jquery-1.4.2.js',
3232 'mw' => 'resources/core/mw.js',
3333 );
3434 /**
@@ -275,7 +275,7 @@
276276 $retval = array();
277277 $dbr = wfGetDB( DB_SLAVE );
278278 $res = $dbr->select( 'msg_resource', array( 'mr_blob', 'mr_resource' ),
279 - array( 'mr_resource' => $modules, 'mr_lang' => $this->lang ),
 279+ array( 'mr_resource' => $modules, 'mr_lang' => $lang ),
280280 __METHOD__
281281 );
282282 foreach ( $res as $row ) {

Status & tagging log