From 858ebbe68fad45f653a518c5531749bf4c14c6ee Mon Sep 17 00:00:00 2001 From: czaks Date: Thu, 9 Jan 2014 18:24:53 +0100 Subject: [PATCH] delegate youtube.js embed html code to config.php --- inc/config.php | 5 +++++ js/youtube.js | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/inc/config.php b/inc/config.php index d11d6862..486d4892 100644 --- a/inc/config.php +++ b/inc/config.php @@ -1525,3 +1525,8 @@ // is the absolute maximum, because MySQL cannot handle table names greater than 64 characters. $config['board_regex'] = '[0-9a-zA-Z$_\x{0080}-\x{FFFF}]{1,58}'; + // Youtube.js embed HTML code + $config['youtube_js_html'] = '
'. + ''. + ''. + '
'; diff --git a/js/youtube.js b/js/youtube.js index 745e1519..d93b5cc5 100644 --- a/js/youtube.js +++ b/js/youtube.js @@ -15,8 +15,7 @@ * $config['embedding'] = array(); * $config['embedding'][0] = array( * '/^https?:\/\/(\w+\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/)([a-zA-Z0-9\-_]{10,11})(&.+)?$/i', -* '
' -); +* $config['youtube_js_html']); * $config['additional_javascript'][] = 'js/jquery.min.js'; * $config['additional_javascript'][] = 'js/youtube.js'; *