Commit be7966d8 authored by alexpott's avatar alexpott

Issue #3036787 by yongt9412, Berdir: media_post_update_enable_standalone_url()...

Issue #3036787 by yongt9412, Berdir: media_post_update_enable_standalone_url() should only set TRUE if not already set
parent 589f610f
......@@ -23,8 +23,8 @@ function media_post_update_storage_handler() {
* Keep media items viewable at /media/{id}.
function media_post_update_enable_standalone_url() {
->set('standalone_url', TRUE)
$config = \Drupal::configFactory()->getEditable('media.settings');
if ($config->get('standalone_url') === NULL) {
$config->set('standalone_url', TRUE)->save(TRUE);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment