WordPress.org

Ready to get started?Download WordPress

Forums

Len Slider
Fix: Skins are not displayed (1 post)

  1. avorobchevici
    Member
    Posted 8 months ago #

    Hi Igor,
    I found an issue about skin detection on your plugin.
    The problem is happend because you do strlower for entire abs path, that can contain capital letters.
    That can be found on file lenslider.class.php at methods lenslider_is_skin and lenslider_skin_exists.

    This can be avoided with replacing

    if(file_exists(strtolower({$path_to_skins_folder}/{$skin_name}/".self::$settings_file)) || file_exists(strtolower({$path_to_custom_skins_folder}/{$skin_name}/".self::$settings_file)))

    with

    if(file_exists($path_to_skins_folder . strtolower("/{$skin_name}/".self::$settings_file)) || file_exists($path_to_custom_skins_folder . strtolower("/{$skin_name}/".self::$settings_file)))

    Maybe this little thing will save someone's life :P.
    You're doing a great job with this plugin, keep going.

    I apologize for my poor English.

    http://wordpress.org/extend/plugins/len-slider/

Reply

You must log in to post.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 8 months ago by avorobchevici
  • This topic is not resolved
  • WordPress version: 3.5.1