setUsername('{--USERNAME_AJAX--}');
// In installation phase load ajax_installer.php
- if (isInstallationPhase()) {
+ if (isInstaller()) {
// Load it
loadIncludeOnce('inc/ajax/ajax_installer.php');
} // END - if
switch (postRequestElement('level')) {
case 'install': // Installation phase level
// Simply check for it
- $isValid = isInstallationPhase();
+ $isValid = isInstaller();
break;
case 'admin': // Admin area
}
// Send AJAX content
-function sendAjaxContent () {
+function sendAjaxContent ($forceOutput = FALSE) {
// Is the status fine or template not found (404)?
- if (isAjaxHttpStatusAccepted()) {
+ if ((isAjaxHttpStatusAccepted()) || ($forceOutput === TRUE)) {
// Then output the JSON
outputHtml(encodeJson($GLOBALS['ajax_reply']));
} // END - if