<script>
var SID_ARG_2ND = '';
var WCF_PATH = '{@$__wcf->getPath()}';
+ var WSC_API_URL = '{@$__wcf->getPath()}';
var SECURITY_TOKEN = '{@SECURITY_TOKEN}';
var LANGUAGE_ID = {@$__wcf->getLanguage()->languageID};
var TIME_NOW = {@TIME_NOW};
- var URL_LEGACY_MODE = {if URL_LEGACY_MODE}true{else}false{/if};
+ var URL_LEGACY_MODE = false;
</script>
{js application='wcf' file='require' bundle='WoltLabSuite.Core' core='true'}
<script>
var SID_ARG_2ND = '';
var WCF_PATH = '{@$__wcf->getPath()}';
- var WSC_IS_ACP = true;
+ var WSC_API_URL = '{@$__wcf->getPath()}acp/';
var SECURITY_TOKEN = '{@SECURITY_TOKEN}';
var LANGUAGE_ID = {@$__wcf->getLanguage()->languageID};
var TIME_NOW = {@TIME_NOW};
this._proxy = new WCF.Action.Proxy({
showLoadingOverlay: false,
success: $.proxy(this._success, this),
- url: 'index.php/MessageQuote/?t=' + SECURITY_TOKEN
+ url: 'index.php?message-quote/&t=' + SECURITY_TOKEN
});
this._toggleShowQuotes();
this._polls = { };
this._proxy = new WCF.Action.Proxy({
success: $.proxy(this._success, this),
- url: 'index.php/Poll/?t=' + SECURITY_TOKEN
+ url: 'index.php?poll/&t=' + SECURITY_TOKEN
});
// init polls
success: null,
suppressErrors: false,
type: 'POST',
- url: 'index.php/AJAXProxy/?t=' + SECURITY_TOKEN,
+ url: 'index.php?ajax-proxy/&t=' + SECURITY_TOKEN,
aborted: null,
autoAbortPrevious: false
}, options);
this._options = $.extend(true, {
action: 'upload',
multiple: false,
- url: 'index.php/AJAXUpload/?t=' + SECURITY_TOKEN
+ url: 'index.php?ajax-upload/&t=' + SECURITY_TOKEN
}, options || { });
this._options.url = WCF.convertLegacyURL(this._options.url);
options.pinData = true;
options.callbackObject = callbackObject;
- if (!options.url) options.url = 'index.php/AJAXProxy/?t=' + SECURITY_TOKEN;
+ if (!options.url) options.url = 'index.php?ajax-proxy/&t=' + SECURITY_TOKEN;
request = new AjaxRequest(options);
options.pinData = false;
options.callbackObject = null;
- if (!options.url) options.url = 'index.php/AJAXProxy/?t=' + SECURITY_TOKEN;
+ if (!options.url) options.url = 'index.php?ajax-proxy/&t=' + SECURITY_TOKEN;
var request = new AjaxRequest(options);
request.sendRequest();
this._options.url = Core.convertLegacyUrl(this._options.url);
if (this._options.url.indexOf('index.php') === 0) {
- this._options.url = WCF_PATH + (window.WSC_IS_ACP === true ? 'acp/' : '') + this._options.url;
+ this._options.url = WSC_API_URL + this._options.url;
}
if (this._options.pinData) {
* Uploads file via AJAX.
*
* @author Matthias Schmidt
- * @copyright 2001-2015 WoltLab GmbH
+ * @copyright 2001-2016 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @module WoltLabSuite/Core/Upload
*/
// is true if every file from a multi-file selection is uploaded in its own request
singleFileRequests: false,
// url for uploading file
- url: 'index.php/AJAXUpload/?t=' + SECURITY_TOKEN
+ url: 'index.php?ajax-upload/&t=' + SECURITY_TOKEN
}, options);
- this._options.url = WCF.convertLegacyURL(this._options.url);
+ this._options.url = Core.convertLegacyUrl(this._options.url);
+ if (this._options.url.indexOf('index.php') === 0) {
+ this._options.url = WSC_API_URL + this._options.url;
+ }
this._buttonContainer = elById(buttonContainerId);
if (this._buttonContainer === null) {