@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | // show_unapproved_objects). Disabled by default. Unsafe to Link Prefetching! |
364 | 364 | 'metadata_approval' => false, |
365 | 365 | 'metadata_scheduling' => false, |
366 | - 'metadata_lock_timeout' => 60, // Time in minutes |
|
366 | + 'metadata_lock_timeout' => 60, // Time in minutes |
|
367 | 367 | |
368 | 368 | // Set the datamanager schema used by the Metadata Service |
369 | 369 | 'metadata_schema' => 'file:/midcom/config/metadata_default.inc', |
@@ -439,12 +439,12 @@ discard block |
||
439 | 439 | return $default; |
440 | 440 | } |
441 | 441 | |
442 | - if ( $key === 'auth_type' |
|
442 | + if ($key === 'auth_type' |
|
443 | 443 | && !in_array($this->_merged_config[$key], ['Plaintext', 'Legacy', 'SHA256'])) { |
444 | 444 | throw new midcom_error('Unsupported authentication type'); |
445 | 445 | } |
446 | 446 | // Check the midcom_config site prefix for absolute local urls |
447 | - if ( $key === 'midcom_site_url' |
|
447 | + if ($key === 'midcom_site_url' |
|
448 | 448 | && str_starts_with($this->_merged_config[$key], '/')) { |
449 | 449 | $this->_merged_config[$key] = midcom::get()->get_page_prefix() . substr($this->_merged_config[$key], 1); |
450 | 450 | } |