File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,13 @@ public static function onParserFirstCallInit( Parser &$parser ) {
32
32
*/
33
33
public static function onRegistration () {
34
34
// 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 ;
37
36
38
37
// Local file path for includes
39
38
define ('GWBBCODE_ROOT ' , __DIR__ .'/gwbbcode ' );
40
39
41
40
// 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 ' );
43
42
44
43
// Website URL for the page prefix, e.g. 'https://gwpvx.gamepedia.com/index.php?title='/Archive:Team_-_Frostmaw_Searing_Spike
45
44
define ('PVX_WIKI_PAGE_URL ' , $ wgServer .$ wgScriptPath );
You can’t perform that action at this time.
0 commit comments