Skip to content
This repository has been archived by the owner on Apr 11, 2019. It is now read-only.

Commit

Permalink
Fix type and change service override notice to an and instead of or.
Browse files Browse the repository at this point in the history
  • Loading branch information
valeryan authored Jul 18, 2018
1 parent 49f23db commit 3823238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EmbedVideo.hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ static public function parseEVL( Parser &$parser ) {

// force to youtubevidelink or youtube if video list is provided
if (count($ids) > 0) {
if ($options['service'] != 'youtube' || $options['service'] != 'youtbuevideolist') {
if ($options['service'] != 'youtube' && $options['service'] != 'youtubevideolist') {
$options['notice'] = "The video list feature only works with the youtube service. Your service is being overridden.";
}
$options['service'] = count($ids) > 0 && $id === false ? "youtubevideolist" : "youtube";
Expand Down

0 comments on commit 3823238

Please sign in to comment.