Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 1d4839e19b67edcdeb28bd8a8c74bd40453d80f1 2 parents a167847 + d3d2f47
James Holding cubehouse authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 php/az4db.php
4 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) {
Please sign in to comment.
Something went wrong with that request. Please try again.