Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
silly bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazar Aziz committed Feb 4, 2009
1 parent cb5fcba commit cea2025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jw_player_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def player(player_options = {}, flash_options = {})
container = "#{flash_options[:id]}_container"
msg = flash_options[:flash_required_message].nil? ? FLASH_REQUIRED_MESSAGE : flash_options[:flash_required_message]
#if DEFAULT_SKIN defined then use that, otherwise look in player_options[:skin]. Don't specify if neither are set
skin = player_options[:skin].blank? ? (const_defined?('DEFAULT_SKIN') ? DEFAULT_SKIN : '') : player_options[:skin]
skin = player_options[:skin].blank? ? (PSP::JwPlayerHelper.const_defined?('DEFAULT_SKIN') ? DEFAULT_SKIN : '') : player_options[:skin]
player_options[:skin] = "/swf/skins/#{skin}.swf" unless skin.blank?

js = "var swf_obj = new SWFObject('/swf/player.swf','#{flash_options[:player_id]}','#{flash_options[:width]}','#{flash_options[:height]}','9');" <<
Expand Down

0 comments on commit cea2025

Please sign in to comment.