Support » Plugin: Booking Calendar » wrong path in javascript – qtranslate

  • Resolved Nitroweb

    (@spyrosvl)


    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/

Viewing 1 replies (of 1 total)
  • Plugin Author wpdevelop

    (@wpdevelop)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘wrong path in javascript – qtranslate’ is closed to new replies.