r64495 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64494‎ | r64495 | r64496 >
Date:18:23, 1 April 2010
Author:neilk
Status:deferred
Tags:
Comment:
fixing typos left over from some name changes
Modified paths:
  • /branches/js2-work/phase3/includes/OutputPage.php (modified) (history)
  • /branches/js2-work/phase3/js/mwEmbed/jsScriptLoader.php (modified) (history)

Diff [purge]

Index: branches/js2-work/phase3/includes/OutputPage.php
@@ -218,7 +218,7 @@
219219 global $wgDebugJavaScript, $wgJSAutoloadClasses, $IP,
220220 $wgEnableScriptLoader, $wgStyleVersion, $wgScriptPath, $wgStylePath;
221221
222 - $path = jsScriptLoader::getJsPathFromClass( $jsClass );
 222+ $path = jsScriptLoader::getPathFromClass( $jsClass );
223223
224224 if( $path !== false ){
225225 if( $wgEnableScriptLoader ) {
@@ -312,7 +312,7 @@
313313 }else{
314314 // Check for file modified time:
315315 if( $wgScriptModifiedFileCheck ) {
316 - $jsPath = jsScriptLoader::getJsPathFromClass( $class );
 316+ $jsPath = jsScriptLoader::getPathFromClass( $class );
317317 if( $jsPath ) {
318318 $cur_ftime = filemtime ( $IP ."/". $jsPath );
319319 if( $cur_ftime > $ftime )
Index: branches/js2-work/phase3/js/mwEmbed/jsScriptLoader.php
@@ -518,7 +518,7 @@
519519 $reqClass = preg_replace( "/[^A-Za-z0-9_\-\.]/", '', $reqClass );
520520
521521 $filePath = self::getPathFromClass( $reqClass );
522 - if( !$jsFilePath ){
 522+ if( !$filePath ){
523523 $this->errorMsg .= 'Requested class: ' . htmlspecialchars( $reqClass ) . ' not found' . "\n";
524524 }else{
525525 $this->jsFileList[ $reqClass ] = $filePath;

Status & tagging log