Manual:$wgExtensionAssetsPath

From Linux Web Expert

Revision as of 22:02, 23 July 2022 by imported>Shirayuki (Marked this version for translation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Server URLs and file paths</translate>: $wgExtensionAssetsPath
URL to extensions directory.
<translate> Introduced in version:</translate>1.16.0 (r60885)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(string)
<translate> Default value:</translate>{$wgScriptPath }/extensions
(<translate> Note:</translate> <translate> The default value of this variable depends on other variables, such as the values set in <tvar|1>Setup.php </>, after <tvar|2>LocalSettings.php </> is executed</translate>)

Details

URL to extensions directory, defaults to "{$wgScriptPath }/extensions".

Used to provide a base URL for extension assets like extension-specific images and scripts. Note the difference between $IP/extensions (points to the extensions directory on the server filesystem) and $wgScriptPath/extensions (points to the URL of the extensions directory).

See also