Manual:$wgAllowExternalImagesFrom/pt-br

From Linux Web Expert

Revision as of 13:15, 10 April 2024 by imported>Vinickw (Created page with "== Ver também ==")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Parser</translate>: $wgAllowExternalImagesFrom
If $wgAllowExternalImages is false, you can specify exceptions here.
<translate> Introduced in version:</translate>1.6.0 (r11531)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(array) (1.14+)
(string) (1.6-1.13)
<translate> Default value:</translate>''

Details

If $wgAllowExternalImages is false, you can specify an exception here. Image URLs that start with this string are then rendered, while all others are not. You can use this to set up a trusted, simple repository of images. As of r40310 (1.14.0), this may be an array of strings.

Example

$wgAllowExternalImagesFrom = 'http://127.0.0.1/';
$wgAllowExternalImagesFrom = [
    'http://127.0.0.1/',
    'https://www.example.com/'
];

Ver também