Permalink
Browse files

Merge branch 'master' of github.com:AlphaZone4/Item-Database

  • Loading branch information...
2 parents a167847 + d3d2f47 commit 1d4839e19b67edcdeb28bd8a8c74bd40453d80f1 @cubehouse cubehouse committed Sep 25, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 php/az4db.php
View
@@ -142,6 +142,8 @@ function az4dbwp_render(){
require_once(dirname(__FILE__)."/az4HTML.php");
$noscript = az4HTML_home();
}
+
+ $wp_base = parse_url(get_bloginfo('url'))['path'];
return <<< EOD
<script type='text/javascript'>
@@ -210,7 +212,7 @@ function getCookie(c_name)
$("#database").show();
if (do_load)az4db_init({
baseURL: "{$base}",
- basePath: "/{$az4dbwp_page}",
+ basePath: "{$wp_base}/{$az4dbwp_page}",
apiBase: "http://api.alphazone4.com",
linkType: "html5"
});az4db_frame($("#database"),function(frame) {

0 comments on commit 1d4839e

Please sign in to comment.