Index: trunk/phase3/js2/mwEmbed/jsScriptLoader.php |
— | — | @@ -184,7 +184,7 @@ |
185 | 185 | continue; |
186 | 186 | } |
187 | 187 | |
188 | | - $reqClass = ereg_replace("[^A-Za-z0-9_\-\.]", '', $reqClass ); |
| 188 | + $reqClass = preg_replace("/[^A-Za-z0-9_\-\.]/", '', $reqClass ); |
189 | 189 | |
190 | 190 | if( isset( $wgJSAutoloadLocalClasses[$reqClass] ) ){ |
191 | 191 | $this->jsFileList[$reqClass] = $wgJSAutoloadLocalClasses[$reqClass]; |
— | — | @@ -305,7 +305,7 @@ |
306 | 306 | |
307 | 307 | $hash1 = substr( $hash, 0, 1 ); |
308 | 308 | $hash2 = substr( $hash, 0, 2 ); |
309 | | - $this->mFileCache = "{$wgFileCacheDirectory}/{$subdir}{$hash1}/{$hash2}/{$this->rKey}.js"; |
| 309 | + $this->mFileCache = "{$wgFileCacheDirectory}/{$hash1}/{$hash2}/{$this->rKey}.js"; |
310 | 310 | |
311 | 311 | if( $wgUseGzip ) |
312 | 312 | $this->mFileCache .= '.gz'; |