手册:$wgAllowExternalImagesFrom

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgAllowExternalImagesFrom and the translation is 38% complete.

Other languages:
English • ‎dansk • ‎español • ‎polski • ‎русский • ‎中文 • ‎日本語
解析器: $wgAllowExternalImagesFrom
If $wgAllowExternalImages is false, you can specify exceptions here.
引进版本:1.6.0 (r11531)
移除版本:仍在使用
允许的值:(string) (prior to 1.14)
(array) (1.14+)
默认值:''

详情

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.

例子

  $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
  $wgAllowExternalImagesFrom = array( 'http://127.0.0.1/', 'http://www.example.com/' ); // 仅限1.14.0及以上

参见