From 7ad2ca8acf41b303a3637886b9136c851a36abeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3na=20Lore?= Date: Fri, 14 Oct 2016 22:09:34 +0200 Subject: [PATCH] Fix for issue #1921 --- e107_admin/image.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e107_admin/image.php b/e107_admin/image.php index 399af87ca..6a4b9cc77 100644 --- a/e107_admin/image.php +++ b/e107_admin/image.php @@ -760,7 +760,7 @@ class media_admin_ui extends e_admin_ui 'watermark_opacity' => array('title'=> IMALAN_96, 'tab'=>1, 'type' => 'number', 'data' => 'int', 'help'=>IMALAN_97), // 'validate' => 'regex', 'rule' => '#^[\d]+$#i', 'help' => 'allowed characters are a-zA-Z and underscore')), // https://developers.google.com/youtube/player_parameters - 'youtube_apikey' => array('title'=> "YouTube Public API key", 'tab'=>2, 'type' => 'text', 'data'=>'str', 'help'=>IMALAN_99, 'writeParms'=>array('post'=>" ".LAN_MORE."")), + 'youtube_apikey' => array('title'=> "YouTube Public API key", 'tab'=>2, 'type' => 'text', 'data'=>'str', 'help'=>IMALAN_99, 'writeParms'=>array('post'=>"")), 'youtube_default_account' => array('title'=> IMALAN_98, 'tab'=>2, 'type' => 'text', 'data'=>'str', 'help'=>IMALAN_99), @@ -842,6 +842,8 @@ class media_admin_ui extends e_admin_ui function init() { + $this->prefs['youtube_apikey']['writeParms']['post'] = " ".LAN_MORE.""; + if(E107_DEBUG_LEVEL > 0) { $this->fields['media_url']['inline'] = true;