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

  1. Nitroweb
    Posted 3 years ago #


    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,


  2. wpdevelop
    Plugin Author

    Posted 3 years ago #

    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

  • Booking Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic