镜像自地址
https://github.com/wikimedia/mediawiki-extensions-GlobalPreferences.git
已同步 2024-06-01 09:50:49 +08:00
Merge "Allow extensions and skins to define a globalizable custom field"
这个提交包含在:
当前提交
644482c799
|
@ -450,6 +450,13 @@ class GlobalPreferencesFactory extends DefaultPreferencesFactory {
|
|||
return false;
|
||||
}
|
||||
|
||||
// Allow explicitly define if a preference can be globalized,
|
||||
// especially useful for custom field classes.
|
||||
// TODO: Deprecate 'noglobal' in favour of this param.
|
||||
if ( isset( $info['canglobal'] ) ) {
|
||||
return (bool)$info['canglobal'];
|
||||
}
|
||||
|
||||
$isAllowedType = isset( $info['type'] )
|
||||
&& !in_array( $info['type'], $this->typesPrevented )
|
||||
&& !in_array( $name, $this->disallowedPreferences );
|
||||
|
|
正在加载...
在新工单中引用
屏蔽一个用户