r65179 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65178‎ | r65179 | r65180 >
Date:20:13, 17 April 2010
Author:dale
Status:deferred
Tags:
Comment:
fixed some script paths
Modified paths:
  • /trunk/extensions/JS2Support/JS2AutoLoader.php (modified) (history)
  • /trunk/extensions/JS2Support/JS2Support.php (modified) (history)
  • /trunk/extensions/JS2Support/ScriptLoaderOutputPage.php (modified) (history)
  • /trunk/extensions/JS2Support/mwScriptLoader.php (modified) (history)

Diff [purge]

Index: trunk/extensions/JS2Support/ScriptLoaderOutputPage.php
@@ -10,6 +10,8 @@
1111 // Flag javascript Classes loaded
1212 var $mLoadedJavascriptClasses = false;
1313
 14+ // The path to the script-loader
 15+ static $mScriptLoaderPath = 'extensions/JS2Support/mwScriptLoader';
1416 /**
1517 * $Script Loader Class List
1618 *
@@ -327,7 +329,7 @@
328330 global $wgRequest, $wgDebugJavaScript;
329331 $stylesString = implode( ',', $stylesAry );
330332
331 - $url = wfScript( 'extensions/JS2Support/mwScriptLoader' ) .
 333+ $url = wfScript( self::$mScriptLoaderPath ) .
332334 "?class={$stylesString}&" . $this->getURIDparam( $stylesAry ). "&ctype=css";
333335
334336 // Check for the media option:
@@ -368,7 +370,7 @@
369371 global $wgRequest, $wgDebugJavaScript;
370372 $classListString = implode( ',', $classAry );
371373
372 - return Html::linkedScript( wfScript( 'mwScriptLoader' ) .
 374+ return Html::linkedScript( wfScript( self::$mScriptLoaderPath ) .
373375 "?class={$classListString}&" . $this->getURIDparam( $classAry) ) . "\n";
374376 }
375377
Index: trunk/extensions/JS2Support/JS2Support.php
@@ -101,7 +101,7 @@
102102 /**
103103 * Path for mwEmbed normally js/mwEmbed/
104104 */
105 -$wgMwEmbedDirectory = "extensions/JS2Support/mwEmbed/";
 105+$wgMwEmbedDirectory = "extensions/JS2Support/js/mwEmbed/";
106106
107107 /**
108108 * Enables javascript on debugging
Index: trunk/extensions/JS2Support/JS2AutoLoader.php
@@ -5,15 +5,15 @@
66 *****************************/
77 $wgAutoloadClasses = array_merge( $wgAutoloadClasses,
88 array(
9 - 'JSMin' => $dir . 'mwEmbed/includes/library/JSMin.php',
10 - 'Minify_CSS' => $dir . 'mwEmbed/includes/library/CSS.php',
11 - 'Minify_CommentPreserver' => $dir . 'mwEmbed/includes/library/CommentPreserver.php',
12 - 'Minify_CSS_Compressor' => $dir . 'mwEmbed/includes/library/CSS/Compressor.php',
13 - 'Minify_CSS_UriRewriter' => $dir . 'mwEmbed/includes/library/CSS/UriRewriter.php',
14 - 'JSMinException' => $dir . 'mwEmbed/includes/minify/JSMin.php',
15 - 'jsScriptLoader' => $dir . 'mwEmbed/jsScriptLoader.php',
16 - 'jsClassLoader' => $dir . 'mwEmbed/includes/jsClassLoader.php',
17 - 'simpleFileCache' => $dir . 'mwEmbed/jsScriptLoader.php',
 9+ 'JSMin' => $dir . 'js/mwEmbed/includes/library/JSMin.php',
 10+ 'Minify_CSS' => $dir . 'js/mwEmbed/includes/library/CSS.php',
 11+ 'Minify_CommentPreserver' => $dir . 'js/mwEmbed/includes/library/CommentPreserver.php',
 12+ 'Minify_CSS_Compressor' => $dir . 'js/mwEmbed/includes/library/CSS/Compressor.php',
 13+ 'Minify_CSS_UriRewriter' => $dir . 'js/mwEmbed/includes/library/CSS/UriRewriter.php',
 14+ 'JSMinException' => $dir . 'js/mwEmbed/includes/minify/JSMin.php',
 15+ 'jsScriptLoader' => $dir . 'js/mwEmbed/jsScriptLoader.php',
 16+ 'jsClassLoader' => $dir . 'js/mwEmbed/includes/jsClassLoader.php',
 17+ 'simpleFileCache' => $dir . 'js/mwEmbed/jsScriptLoader.php',
1818 )
1919 );
2020
Index: trunk/extensions/JS2Support/mwScriptLoader.php
@@ -27,7 +27,7 @@
2828 // First do a quick check for the cached file
2929 define('MW_CACHE_SCRIPT_CHECK', true);
3030
31 -require_once( dirname(__FILE__) . '/mwEmbed/jsScriptLoader.php');
 31+require_once( dirname(__FILE__) . '/js/mwEmbed/jsScriptLoader.php');
3232 // Do quick cache check via jsScriptLoader
3333 $myScriptLoader = new jsScriptLoader();
3434 if( $myScriptLoader->outputFromCache() ){

Status & tagging log