Skip to content

Commit a937c17

Browse files
committed
Merge branch 'GPUCP-484' into 'master'
Change images to use wgExtensionAssetsPAth See merge request hydrawiki/extensions/pvxcode!13
2 parents d119419 + acbaa02 commit a937c17

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

PvXCode.hooks.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,13 @@ public static function onParserFirstCallInit( Parser &$parser ) {
3232
*/
3333
public static function onRegistration() {
3434
// Retrieve config settings from localSettings.php - probably a better way of doing this via "use MediaWiki\MediaWikiServices;"
35-
global $wgServer;
36-
global $wgScriptPath;
35+
global $wgServer, $wgScriptPath, $wgExtensionAssetsPath;
3736

3837
// Local file path for includes
3938
define('GWBBCODE_ROOT', __DIR__.'/gwbbcode');
4039

4140
// Website URL for the image folder within extension/PvXCode folder, e.g. '/extensions/PvXCode/images'/img_skills/83.jpg
42-
define('GWBBCODE_IMAGES_FOLDER_URL', $wgServer.$wgScriptPath.'/extensions/PvXCode/images');
41+
define('GWBBCODE_IMAGES_FOLDER_URL', $wgExtensionAssetsPath.'/PvXCode/images');
4342

4443
// Website URL for the page prefix, e.g. 'https://gwpvx.gamepedia.com/index.php?title='/Archive:Team_-_Frostmaw_Searing_Spike
4544
define('PVX_WIKI_PAGE_URL', $wgServer.$wgScriptPath );

0 commit comments

Comments
 (0)