mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Merge "Hooks#onAuthPluginAutoCreate: Only act if not default"
This commit is contained in:
commit
743b53c4e3
|
@ -956,6 +956,7 @@ class VisualEditorHooks {
|
|||
public static function onAuthPluginAutoCreate( $user ) {
|
||||
if (
|
||||
RequestContext::getMain()->getConfig()->get( 'VisualEditorAutoAccountEnable' ) &&
|
||||
!User::getDefaultOption( 'visualeditor-editor' ) &&
|
||||
$user->isLoggedin()
|
||||
) {
|
||||
$user->setOption( 'visualeditor-enable', 1 );
|
||||
|
|
Loading…
Reference in a new issue