WordPress.org

Ready to get started?Download WordPress

Forums

Booking Calendar
[resolved] wrong path in javascript - qtranslate (2 posts)

  1. spyrosvl
    Member
    Posted 1 year ago #

    Hello,

    When qtranslate is installed an additional path may be added to the url, for example: http://www.mydomain.com/en/page/

    In file : wpdev-booking-class.php
    Line 3114

    var wpdev_bk_plugin_url = '<?php echo get_home_url(null, '/wp-content/plugins/'.WPDEV_BK_PLUGIN_DIRNAME ); ?>';

    should be changed to var wpdev_bk_plugin_url = '<?php echo WPDEV_BK_PLUGIN_URL; ?>';

    to ensure that the path is correct.

    Can you please change this if/when a new version is out?

    Best regards,
    Spyros

    http://wordpress.org/extend/plugins/booking/

  2. wpdevelop
    Member
    Plugin Author

    Posted 1 year ago #

    Hello.
    Actually, in the next update we are changed that line:
    var wpdev_bk_plugin_url = '<?php echo get_home_url(null, '/wp-content/plugins/'.WPDEV_BK_PLUGIN_DIRNAME ); ?>';
    to this line:
    var wpdev_bk_plugin_url = '<?php echo get_site_url(null, '/wp-content/plugins/'.WPDEV_BK_PLUGIN_DIRNAME ); ?>';

    Its fixed issue, when the blog is installed in the folder different than a root of your site. Also its have to be the same as your suggestion.
    Can you try to replace that line to this new one and recheck, if its not generate any issues with the your qtranslate?
    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic