Skip to content

Commit

Permalink
loadLanguage(\'OharaYTEmbed\');
Browse files Browse the repository at this point in the history
Signed-off-by: Suki <suki@missallsunday.com>
  • Loading branch information
MissAllSunday committed Mar 5, 2014
1 parent 2fcb858 commit 3a8a819
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/OharaYTEmbed.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ function OYTE_bbc_add_code(&$codes)
'validate' => create_function('&$tag, &$data, $disabled', '
global $txt;
loadLanguage(\'OharaYTEmbed\');
if (empty($data))
$data = $txt[\'OYTE_unvalid_link\'];
Expand All @@ -47,6 +49,8 @@ function OYTE_bbc_add_code(&$codes)
'validate' => create_function('&$tag, &$data, $disabled', '
global $txt;
loadLanguage(\'OharaYTEmbed\');
if (empty($data))
$data = $txt[\'OYTE_unvalid_link\'];
Expand All @@ -66,6 +70,8 @@ function OYTE_bbc_add_code(&$codes)
'validate' => create_function('&$tag, &$data, $disabled', '
global $txt;
loadLanguage(\'OharaYTEmbed\');
if (empty($data))
$data = $txt[\'OYTE_unvalid_link\'];
Expand Down

0 comments on commit 3a8a819

Please sign in to comment.