We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Problem: root_options values that have the same key as in the default root (local) are not overridden.
Example: 'root_options' => array('URL' => 'something') This wont override the URL attribute.
Cause: The arguments to array_merge here
laravel-elfinder/src/ElfinderController.php
Line 129 in 03b8bc8
php's array_merge keeps the values from the last arguments array when there are key collisions.
Fix: Change the order of the arguments
- $roots[$key] = array_merge($rootOptions, $root); + $roots[$key] = array_merge($root, $rootOptions);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem: root_options values that have the same key as in the default root (local) are not overridden.
Example:
'root_options' => array('URL' => 'something')
This wont override the URL attribute.
Cause:
The arguments to array_merge here
laravel-elfinder/src/ElfinderController.php
Line 129 in 03b8bc8
are backwards for the intended functionality of allowing $rootOptions to override the $root values.
php's array_merge keeps the values from the last arguments array when there are key collisions.
Fix:
Change the order of the arguments
The text was updated successfully, but these errors were encountered: