Index: trunk/extensions/MwEmbedSupport/MwEmbedResourceManager.php |
— | — | @@ -93,9 +93,12 @@ |
94 | 94 | global $IP, $wgEnableMwEmbedStandAlone, $wgScriptPath; |
95 | 95 | // Register all the resources with the resource loader |
96 | 96 | foreach( self::$moduleSet as $path => $modules ) { |
| 97 | + //remove 'extension' prefix from path |
| 98 | + $remoteExtPath = explode( '/', $path ); |
| 99 | + array_shift( $remoteExtPath ); |
| 100 | + $remoteExtPath = implode( '/', $remoteExtPath); |
97 | 101 | foreach ( $modules as $name => $resources ) { |
98 | | - //remove 'extension' prefix from path |
99 | | - $resources['remoteExtPath'] = implode( '/', array_shift(explode( '/', $path ))); |
| 102 | + $resources['remoteExtPath'] = $remoteExtPath; |
100 | 103 | |
101 | 104 | // Register the resource with MwEmbed extended class if in standAlone resource loader mode: |
102 | 105 | if( $wgEnableMwEmbedStandAlone === true ){ |