v1.8.1
This commit is contained in:
parent
7b7fff5246
commit
b6a55a7f04
27 changed files with 2221 additions and 45 deletions
6
includes/External/GoogleVisionProvider.php
vendored
6
includes/External/GoogleVisionProvider.php
vendored
|
|
@ -126,9 +126,9 @@ class GoogleVisionProvider extends AbstractProvider {
|
|||
* @return string Empty string if not configured.
|
||||
*/
|
||||
private function get_api_key(): string {
|
||||
$raw = get_option( Settings::OPTION_NAME, array() );
|
||||
$opts = is_array( $raw ) ? $raw : array();
|
||||
$val = $opts['google_vision_api_key'] ?? null;
|
||||
$opts = Settings::get_effective_settings();
|
||||
|
||||
$val = $opts['google_vision_api_key'] ?? null;
|
||||
return is_string( $val ) ? trim( $val ) : '';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue