-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed wrong title and icon for login widget #385
Conversation
…eparate title and icon; fixes #269
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Questions
@@ -254,8 +254,7 @@ public function get_lock_options() { | |||
$extraOptions["auth"]["redirectUrl"] = $this->get_code_callback_url(); | |||
} | |||
|
|||
$options_obj = array_merge_recursive( $extraOptions, $options_obj ); | |||
$options_obj = array_merge_recursive( $options_obj , $extended_settings ); | |||
$options_obj = array_replace_recursive( $extraOptions, $options_obj, $extended_settings ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So what is the logic here for duplicate entries. extraOptions
are over ridden by options_obj
but this can then be over ridden by extended_settings
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cocojoe - Correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the naming seems odd. However, it is the same order as the original so fair enough
@@ -230,8 +230,7 @@ public function get_lock_options() { | |||
$extraOptions["callbackURL"] = $this->get_code_callback_url(); | |||
} | |||
|
|||
$options_obj = array_merge( $extraOptions, $options_obj ); | |||
$options_obj = array_merge( $options_obj , $extended_settings ); | |||
$options_obj = array_merge( $extraOptions, $options_obj, $extended_settings ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the previous snippet you change merge
to replace
why does this one stay as merge?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cocojoe - Array dimensions, recursive vs. not recursive. array_merge_recursive
can create arrays out of strings, whereas array_replace_recursive
overrides. array_merge
also overrides but it only goes 1 level deep. Looks like the options arrays are built differently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of questions
@cocojoe - Ready for re-review |
Swapped in
array_replace_recursive
instead ofarray_merge_recursive
to avoid an array being created that the Lock widget couldn't understand.