Define remote extension path for dynamic RL modules

This path is needed for URL expansion in debug mode.

Bug: T378878
Change-Id: Ic7b067df2c03286575d0a390d90d6d2d4b3169e5
(cherry picked from commit 863391d7b8)
This commit is contained in:
Ammarpad 2024-11-03 19:21:06 +01:00
parent 8b2f3c793a
commit 7cafca3083

View file

@ -668,6 +668,7 @@ class SyntaxHighlight extends ExtensionTagHandler implements
public function onResourceLoaderRegisterModules( ResourceLoader $rl ): void {
$rl->register( 'ext.pygments.view', [
'localBasePath' => MW_INSTALL_PATH . '/extensions/SyntaxHighlight_GeSHi/modules',
'remoteExtPath' => 'SyntaxHighlight_GeSHi/modules',
'scripts' => array_merge( [
'pygments.linenumbers.js',
'pygments.links.js',