Hardcoding xjax URL fixes problem because of the redirections to web/main

skala
Julio Montoya 12 years ago
parent eb681afd96
commit dd4da99281
  1. 4
      main/inc/lib/xajax/xajax.inc.php

@ -174,7 +174,8 @@ class xajax
$this->aFunctions = array();
$this->aObjects = array();
$this->aFunctionIncludeFiles = array();
$this->sRequestURI = $sRequestURI;
$this->sRequestURI = $sRequestURI;
if ($this->sRequestURI == "")
$this->sRequestURI = $this->_detectURI();
$this->sWrapperPrefix = $sWrapperPrefix;
@ -811,6 +812,7 @@ class xajax
if ($sJsFile == NULL) $sJsFile = "xajax_js/xajax.js";
if ($sJsURI != "" && substr($sJsURI, -1) != "/") $sJsURI .= "/";
$sJsURI = api_get_path(WEB_LIBRARY_PATH).'xajax/';
$html = "\t<script type=\"text/javascript\" src=\"" . $sJsURI . $sJsFile . "\"></script>\n";
$html .= "\t<script type=\"text/javascript\">\n";

Loading…
Cancel
Save