Skip to content

Commit

Permalink
Merge pull request #530 from CrandellWS/hotfix-chatbox-relative-urls
Browse files Browse the repository at this point in the history
hotfix-chatbox-relative-urls
  • Loading branch information
shish committed Oct 26, 2015
2 parents ffac680 + 7b8d8c2 commit c946daf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ext/chatbox/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function onPageRequest(PageRequestEvent $event) {

// Adds header to enable chatbox
$root = get_base_href();
$yPath = make_http("") . "/ext/chatbox/";
$yPath = make_http( $root . "/ext/chatbox/");
$page->add_html_header("
<script src=\"http://code.jquery.com/jquery-migrate-1.2.1.js\" type=\"text/javascript\"></script>
<script src=\"$root/ext/chatbox/js/yshout.js\" type=\"text/javascript\"></script>
Expand All @@ -27,10 +27,9 @@ public function onPageRequest(PageRequestEvent $event) {
</script>
", 500);

// loads the chatbox at the set location
// loads the chatbox at the set location
$html = "<div id=\"yshout\"></div>";
$chatblock = new Block("Chatbox", $html, "main", 97);
$page->add_block($chatblock);
}
}

0 comments on commit c946daf

Please sign in to comment.